Hi,
I did a little experiment to check the performance of Rubric when dealing with large
content. And by large, I mean 45 MB or about 15 million lines of text.
I opened the file in several other editors:
- TextMate: 10s + the text is wrapped and can be browsed smoothly
- Sublime Text 2: 10s + the text is wrapped and can be browsed smoothly
- Eclipse: 5s + browsing is very slow (so it is basically useless)
thanks doru this is really interesting.
How did Rubric perform:
- When opened with unwrapped lines: 33s + the text can be browsed smoothly
- When opened with wrapped lines -> Pharo crashed :(
In any case, I think being 3 times slower (even if without wrapping) than TextMate is
highly exciting. Great job Alain.
I think that with more ironing and optimisation it will only get better!
Thanks synectique
http://www.synectique.eu for sponsoring the work of Alain and releasing
it MIT.
If you want to reproduce the experiment, here is the Smalltalk snippet I used:
---
Gofer new
smalltalkhubUser: 'AlainPlantec' project: 'Rubric';
package: 'Rubric-AlainPlantec.26';
load.
[
contents := ((FileSystem disk workingDirectory / 'src' / 'ArgoUML-0-34'
/ 'output.mse') readStreamDo: #contents).
(RubLipsumBasicExample
windowWithScrolledText: (
RubLipsumBasicExample new
string: contents;
newScrolledTextNotWrapped))
openInWorld
] timeToRun
---
Cheers,
Doru
--
www.tudorgirba.com
"What we can governs what we wish."