Re: [Vala] Fwd: Why is Vala 10 times slower than C ?
- From: Luca Dionisi <luca dionisi gmail com>
- To: Serge Hulne <serge hulne gmail com>, vala-list gnome org
- Subject: Re: [Vala] Fwd: Why is Vala 10 times slower than C ?
- Date: Mon, 6 Jun 2011 17:14:06 +0200
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]