These are chat archives for dropbox/pyston

21st
Mar 2015
Chris Toshok
@toshok
Mar 21 2015 00:25
colocating strings (and generally reducing copies) seems help interp2.py a little:
pyston interp2.py                         :    3.9s baseline: 4.9 (-21.6%)
Kevin Modzelewski
@kmod
Mar 21 2015 00:27
oh nice
Chris Toshok
@toshok
Mar 21 2015 00:28
there’s a ton of overhead at present, since I have an implement conversion operator from pyston::string to std::string, so any time we pass BoxedString::s to a function expecting std::string, there’s a copy
implicit, not implement
Kevin Modzelewski
@kmod
Mar 21 2015 00:28
we could try converting stuff to take something like an llvm::StringRef
Chris Toshok
@toshok
Mar 21 2015 00:29
i haven’t looked into the stringref stuff - is it just a type that allows both llvm string types and std::string?
Kevin Modzelewski
@kmod
Mar 21 2015 00:30
yeah, I think it's just a (char*, size) pair
Chris Toshok
@toshok
Mar 21 2015 00:30
ah, but they’re lightweight, yeah