Dnia 25 mar 2015 o godz. 19:19 Robert Sebastian Gerus ar@bash.org.pl napisał(a):
Piękny przykład benchmarku tak nagiętego, by operacje dyskowe wydawały się szybsze niż operacje na pamięci. http://arxiv.org/pdf/1503.02678v1.pdf
Erm, nie, autorzy są całkiem uczciwi. Kluczowe:
Although the resulting code, shown in Appendix 1 in Java and Appendix 2 in Python are developed specifically for this paper, the inspiration for them has come from examples of real-life, production code. [..] We start by adding 1 character (byte) at a time to the content, so in the in-memory case, the string containing the file will be concatenated 1,000,000 times."
Trochę kodu pisanego przez naukowców widziałem i spokojnie jestem w stanie w to uwierzyć.