|
github.com/moarvm/moarvm | IRC logs at irclog.perlgeek.de/moarvm/today Set by moderator on 17 September 2013. |
|||
|
00:19
benabik joined
01:00
benabik joined
02:01
FROGGS joined
04:09
eternaleye joined
04:50
eternaleye joined
04:52
cognominal joined
05:44
FROGGS joined
07:08
cognominal joined
10:56
colomon joined
12:08
cognominal joined
12:16
lizmat_ joined
|
|||
| diakopter | hm, the deserializer needs to also de-dupe constant strings so the named-args optimization jnthn & I talked about last week can work | 14:02 | |
| timotimo | oh, you'll have a string table for named arguments and treat them just as integers? | 14:08 | |
| lizmat | wasn't this more general applicable to all string like keys to hashes ? | 14:13 | |
| much like p5 handles hash keys > | |||
| ? | |||
| timotimo | probably | ||
|
14:44
benabik joined
|
|||
| benabik | Well, you could check the identity of the string first and then still fall back to value. | 14:48 | |
| Then you'll get faster access to named values within the same CompUnit at least. (Well, SC technically but they tend to be related) | 14:49 | ||
| Interning strings would be even faster, perhaps, but then you might end up with a huge uncollectible string pool. | 14:51 | ||
| diakopter | lizmat: yep | 16:48 | |
| benabik: yep | 16:51 | ||
| benabik: well it wouldn't be uncollectible if you consider the refs from the compunit's string table as normal gc-tracked references | |||
| benabik | diakopter: But you'll want a big global trie of strings to do the de-duplication with. | 16:52 | |
| diakopter | nah I think a hash would be faster if the hash values were precomputed stored in the serialized compunit | ||
| you agree? | 16:54 | ||
| benabik | And just check the dependent SCs for identical hash values when deserializing? | ||
| s/dependent SCs/SC's dependencies/ | 16:55 | ||
| diakopter | yeah; comparing hash values, length, and spot checking a few characters should make it astronomically unlikely of a false positive | ||
| benabik | Well, hash and then check total identity if you want to be paranoid. If you're going to do string comparison, might as well check the whole thing. | 16:56 | |
|
17:11
lizmat joined
|
|||
| timotimo | no moarvm commit all day, is moarvm dead? ;_; | 19:43 | |
| FROGGS | no, we're just hard thinking about the outer frame bug :o) | 19:45 | |
|
21:25
benabik joined
|
|||
| diakopter | timotimo: yes, moarvm died :( | 21:29 | |
| timotimo | oh no, not again | 21:30 | |
| masak | we should have named it after some animal known to survive everything... like Parrot. | ||
|
22:43
foo_bar_baz joined
|
|||