Re: [U-Boot] netloop: speed up NetLoop

2009-02-24 Thread Mike Frysinger
On Tuesday 10 February 2009 03:38:52 Heiko Schocher wrote: NetLoop polls every cycle with getenv some environment variables. This is horribly slow, especially when the environment is big. This patch reads only the environment variables in NetLoop, when they were changed. Also moved the init

Re: [U-Boot] netloop: speed up NetLoop

2009-02-24 Thread Mike Frysinger
On Tuesday 10 February 2009 03:38:52 Heiko Schocher wrote: +int NetInitLoop(proto_t protocol) and some comments not really specific to your code ... + switch (protocol) { +#if defined(CONFIG_CMD_NFS) + case NFS: +#endif + case NETCONS: +

Re: [U-Boot] netloop: speed up NetLoop

2009-02-24 Thread Heiko Schocher
Hello Mike, Mike Frysinger wrote: On Tuesday 10 February 2009 03:38:52 Heiko Schocher wrote: NetLoop polls every cycle with getenv some environment variables. This is horribly slow, especially when the environment is big. This patch reads only the environment variables in NetLoop, when they

Re: [U-Boot] netloop: speed up NetLoop

2009-02-24 Thread Heiko Schocher
Hello Mike, Mike Frysinger wrote: On Tuesday 10 February 2009 03:38:52 Heiko Schocher wrote: +int NetInitLoop(proto_t protocol) and some comments not really specific to your code ... +switch (protocol) { +#if defined(CONFIG_CMD_NFS) +case NFS: +#endif +

Re: [U-Boot] netloop: speed up NetLoop

2009-02-22 Thread Ben Warren
Heiko Schocher wrote: NetLoop polls every cycle with getenv some environment variables. This is horribly slow, especially when the environment is big. This patch reads only the environment variables in NetLoop, when they were changed. Also moved the init part of the NetLoop function in a

Re: [U-Boot] netloop: speed up NetLoop

2009-02-21 Thread Wolfgang Denk
Dear Ben, In message 49913d1c.6090...@denx.de Heiko Schocher wrote: NetLoop polls every cycle with getenv some environment variables. This is horribly slow, especially when the environment is big. This patch reads only the environment variables in NetLoop, when they were changed. Also

[U-Boot] netloop: speed up NetLoop

2009-02-10 Thread Heiko Schocher
NetLoop polls every cycle with getenv some environment variables. This is horribly slow, especially when the environment is big. This patch reads only the environment variables in NetLoop, when they were changed. Also moved the init part of the NetLoop function in a seperate function.