A RetroSearch Logo

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

Search Query:

Showing content from http://www.python.org/pipermail/python-dev/2000-July/005551.html below:

[Python-Dev] RE: [Python-checkins] CVS: python/dist/src/Objects unicodeobject. c,2.33,2.34

[Python-Dev] RE: [Python-checkins] CVS: python/dist/src/Objects unicodeobject. c,2.33,2.34 [Python-Dev] RE: [Python-checkins] CVS: python/dist/src/Objects unicodeobject. c,2.33,2.34Bill Tutt billtut@microsoft.com
Thu, 6 Jul 2000 01:53:47 -0700
! 	if (c1 > (1<<11) * 26)
! 	    c1 += utf16Fixup[c1>>11];
! 	if (c2 > (1<<11) * 26)
!             c2 += utf16Fixup[c2>>11];
!       

  

This change from the patch is kind of silly. You've made the code flow more
complicated for no particularly good reason, esp. considering the size of
utf16Fixup[]. That is, the cost in the CPU of handling the branch prediction
is likely to be much higher than the array lookup for every character.

Bill
  





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