Merge: Performance update on Buffer
authorJean Privat <jean@pryen.org>
Thu, 20 Aug 2015 15:04:44 +0000 (11:04 -0400)
committerJean Privat <jean@pryen.org>
Thu, 20 Aug 2015 15:04:44 +0000 (11:04 -0400)
commitb7cd48ae44a4333f62323927618a1283460a80fe
treeb49699c7fd781f85fbe4ba19edf9ac00d85f8031
parenta672b1d158eeb2cbf1dfb5316f6f37c558971832
parentbbdb7212196d23e7ab75238ce693a21baafd741d
Merge: Performance update on Buffer

This PR is essentially the same as #1632, which has been invalidated by some black magic.

This PR heavily improves the performance on FlatBuffer by introducing cache mechanisms on indexed access.

This is possible through removal of byte-level manipulation on Buffers and re-introduction of a constant-time length attribute on Buffer.

nitmd is now practicable again and should no longer take too much time when running benches.

This PR still depends on #1628, and as such will not pass no tests as long as it is not integrated

Pull-Request: #1644
lib/standard/text/abstract_text.nit