Re: CPU usage so high, fread() on the FILE wrapped by libfetch's fetchXGetURL()

2012-05-03 Thread Bryan Drewery
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/22/2012 06:54 AM, Yanhui Shen wrote: > Hi, > > I found the CPU usage is pretty high while running 'pkg update', > 'pkg install [fooapp]'. Seems it was caused by fread() on the FILE > wrapped by libfetch's fetchXGetURL() , maybe fetch_read() in >

CPU usage so high, fread() on the FILE wrapped by libfetch's fetchXGetURL()

2012-04-22 Thread Yanhui Shen
Hi, I found the CPU usage is pretty high while running 'pkg update', 'pkg install [fooapp]'. Seems it was caused by fread() on the FILE wrapped by libfetch's fetchXGetURL() , maybe fetch_read() in common.c. Here is a simple test code: http://pastebin.com/2sP1f4Wv I want to know whether it is a bu