Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ade08ea8
Commit
ade08ea8
authored
Mar 18, 2004
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add news entries for the dictionary optimizations.
parent
0ce6dc85
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
Doc/whatsnew/whatsnew24.tex
Doc/whatsnew/whatsnew24.tex
+4
-1
Misc/NEWS
Misc/NEWS
+4
-0
No files found.
Doc/whatsnew/whatsnew24.tex
View file @
ade08ea8
...
...
@@ -264,7 +264,10 @@ yellow 5
\begin{itemize}
\item
The inner loops for
\class
{
list
}
and
\class
{
tuple
}
slicing
were optimized and now run about one-third faster.
were optimized and now run about one-third faster. The inner
loops were also optimized for
\class
{
dict
}
with performance
boosts to
\method
{
keys()
}
,
\method
{
values()
}
,
\method
{
items()
}
,
\method
{
\iterkeys
()
}
,
\method
{
\itervalues
()
}
, and
\method
{
iteritems()
}
.
\item
The machinery for growing and shrinking lists was optimized
for speed and for space efficiency. Small lists (under eight elements)
...
...
Misc/NEWS
View file @
ade08ea8
...
...
@@ -12,6 +12,10 @@ What's New in Python 2.4 alpha 1?
Core and builtins
-----------------
- Optimized dict iterators, creating separate types for each
and having them reveal their length. Also optimized the
methods: keys(), values(), and items().
- Implemented a newcode opcode, LIST_APPEND, that simplifies
the generated bytecode for list comprehensions and further
improves their performance (about 35%).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment