From: Donal K. F. <don...@ma...> - 2017-11-13 15:54:44
|
On 12/11/2017 20:06, Kevin Kenny wrote: > OK, I'm kind of with you on this. I think that there are, however, a > significant fraction of cases where we can detect that an array > doesn't escape from our compiled code and still use the (much faster) > dict implementation. I'm not sure I'm ready to give it up, partly > because so far, whenever we have heavy variable access through the > callframe, we wind up with test cases that are actually slower than > the interpreted code. (Extra boxing/unboxing steps, I think...) I don't think it will make too much difference; the ARRAY type I'm thinking of is not much more complex than a DICT in the first place, except that it doesn't have the conversion to/from STRING. A consequence is that I'll need to introduce a 'throwIfArray' and 'throwIfNotArray' to make the types work. Still at the deeply experimental stage. Donal. |