Commits

Author Commit Message Labels Comments Date
Armin Rigo
Issue #1514
Armin Rigo
Kill unused method
Armin Rigo
fix for 123cde0fe60f
Armin Rigo
Kill this hack. It's a Very Bad idea to do it this way: it means
Antonio Cuni
remove the last end-of-string check
Branches
fastjson
Antonio Cuni
kill yet another more end-of-string check
Branches
fastjson
Antonio Cuni
kill one more end-of-string check
Branches
fastjson
Antonio Cuni
remove one more bound check (safely! :))
Branches
fastjson
Antonio Cuni
kill the last references to peek, next, eof and peek_maybe, they are no longer used
Branches
fastjson
Antonio Cuni
wow, avoiding self.pos, peek_maybe() and friends gives a speedup of ~30%\!
Branches
fastjson
Antonio Cuni
there is no need to check for the bound, as there is the sentinel at the end of the string anyway. Morever, avoid to keep a separate counter
Branches
fastjson
Antonio Cuni
more drangons: RPython is not smart enough to remove bound checking everywhere we are interested in. Instead, we access directly to the underlying char array:
Branches
fastjson
Antonio Cuni
apparently, checking for digits at last gives another small speedup
Branches
fastjson
Antonio Cuni
put a \0 sentinel at the end of the string: the cost of the string copy is neligible but this let us to avoid lots of eof() checks during the parsing. Also, relax the dependency on self.pos, and explicitly pass the current index around
Branches
fastjson
Antonio Cuni
start to refactor the decoder to avoid continuously updating .pos
Branches
fastjson
Antonio Cuni
add a comment to this function, and give it a better name
Branches
fastjson
Antonio Cuni
rename JSONDecoder.i to .pos, just because it's a better name
Branches
fastjson
Antonio Cuni
call math.pow only when it's really needed. Believe it or not, it saves another 5% on my benchmark
Branches
fastjson
Antonio Cuni
speed up parse_digits by storing self.i only at the end
Branches
fastjson
Antonio Cuni
here are dragons: valgrind shows that a good percentage of time was spent in
Branches
fastjson
Antonio Cuni
try to speedup things
Branches
fastjson
Armin Rigo
Import cffi/28f10889b5aa.
Armin Rigo
Move this logic after the checks, otherwise errors might be hidden
Romain Guillebert
Fix translation
Branches
numpypy-nditer
Romain Guillebert
Merge heads
Branches
numpypy-nditer
Romain Guillebert
Backed out changeset 730edc51d980
Branches
numpypy-nditer
Romain Guillebert
Implement the external_loop flag on the nditer class
Branches
numpypy-nditer
mattip
add a test that corrupts memory
Branches
argsort-segfault
mattip
progress toward extern_loop
Branches
numpypy-nditer
mattip
fix test for -A
Branches
numpypy-nditer
  1. Prev
  2. Next