Open judofyr opened 11 years ago
https://github.com/topazproject/topaz/blob/cdf71e9f5a2b948e1d29755055cc2fe7f91fa1f1/topaz/objects/stringobject.py#L370
@classdef.method("<<") def method_lshift(self, space, w_other): assert isinstance(w_other, W_StringObject) self.extend(space, w_other) return self
This would make Topaz much faster in String-related benchmarks (e.g. https://github.com/timfel/topaz_bmpstreaming_demo)
Same for Array#<< (which is used in the benchmark that you ship with).
These methods should use argument coercion.
https://github.com/topazproject/topaz/blob/cdf71e9f5a2b948e1d29755055cc2fe7f91fa1f1/topaz/objects/stringobject.py#L370
This would make Topaz much faster in String-related benchmarks (e.g. https://github.com/timfel/topaz_bmpstreaming_demo)