Gavin King

Results 1147 comments of Gavin King

OK, @jvasileff, I just committed some performance optimizations to `Array` that now make our `ArrayList` _very_ competitive with Java's. I can't measure a significant difference in performance for `getFromFirst()`s and...

> So it looks like if there is an answer, it will be a cons list. Well, that sounds good to me! > For 500k multiplications of 2048 bit numbers:...

> The cons list is punished here since the internal representation for that case is `Array` with the translations to/from cons list happening inside the multiply method. I don't understand...

Wait, what are you varying then? I thought this was for varying the internal representation used by `Whole`.

I'm suggesting you try a doubly linked list, to avoid the cost of repackaging it.

I propose to eliminate most of this complexity, by deleting `Buffer` and `CharacterBuffer` from the API, since right now they're not really used for anything. That way, `ByteBuffer` will become...

Well NIO has all that, but we don't really. And plus there is a performance problem with the design of `Buffer`, the generic `get()` method returns a boxed type.

@FroMage But your `CharacterBuffer` is a totally useless thing. It's just a wrapper for a `String`.

@FroMage No it doesn't. It's a wrapper for a `String`. You must have forgotten to finish writing that class, because the functionality you're describing has nothing to do with what...