Re: [Vala] Fwd: Why is Vala 10 times slower than C ?



On Mon, Jun 6, 2011 at 5:02 PM, Serge Hulne <serge hulne gmail com> wrote:
Hint: Luca already told you why the vala version is slower...

       Emmanuel.




Luca said:
---
read_line() is not as cheap as a getline()
str.split() is not as cheap as strtok()
---

You can try and use strtok and fgets
http://valadoc.org/references/posix/0.11.5/Posix.strtok.html
http://valadoc.org/references/posix/0.11.5/Posix.FILE.gets.html



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]