A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-May/035913.html below:

[Python-Dev] Algoritmic Complexity Attack on Python

[Python-Dev] Algoritmic Complexity Attack on Python [Python-Dev] Algoritmic Complexity Attack on PythonTim Peters tim.one@comcast.net
Sat, 31 May 2003 14:28:25 -0400
[Phillip J. Eby]
> ...
> or at least warning the developers of alternatives to CGI (e.g. Zope,
> Quixote, SkunkWeb, CherryPy, etc.) that alternate hashes might be a good
> idea.

Don't know about SkunkWeb or CherryPy etc, but Zope and Quixote apps can use
ZODB's BTrees for mappings.  Insertion and lookup in a BTree have worst-case
log-time behavior, and no "bad" sets of keys exist for them.  The Buckets
forming the leaves of BTrees are vulnerable, though:  provoking
quadratic-time behavior in a Bucket only requires inserting keys in
reverse-sorted order, and sometimes apps use Buckets directly when they
should be using BTrees.

Using a data structure appropriate for the job at hand is usually a good
idea <wink>.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4