thanks Dr. Breuel

it seems very helpful, I will give it try first

Regards,
Leo

On Sep 12, 4:51 pm, "Thomas Breuel" <[EMAIL PROTECTED]> wrote:
> One more thing: if you want to see why your code is running slow and where
> all the time is going, compile with "-pg" and then run gprof.  See the
> on-line documentation for gcc and gprof for the details.
>
> On Visual Studio, look in the help files for how to configure for profiling.
>
> Cheers,
> Thomas.
>
> On Thu, Sep 11, 2008 at 17:18, Leo <[EMAIL PROTECTED]> wrote:
>
> > Hi All
>
> > I have upload one of the main function "hough.cc"
> > I found out one of the main reason for slow speed is that when I add a
> > item to the link list
> > I add it to the end of the list, I already change the way to adding
> > new items which is adding new item to the beginning of the link list.
> > now the speed is much more faster, however there are many other
> > segmentation fault in the code, I was wondering is there another other
> > way for C debugging
> > that I can use instead of just using fprintf(), it will be better if I
> > can found out which line the segmentation fault has occur rather then
> > just get an error message of
> > "Segmentation fault (core dumped)".
>
> > I didn't upload all the code, as I think no one will want to read them
> > all lol
>
> > Regards,
> > Leo
>
> > On Sep 10, 5:18 pm, Shag <[EMAIL 
> > PROTECTED]<https://mail.google.com/mail?view=cm&tf=0&[EMAIL PROTECTED]>>
> > wrote:
> > > I think it will be easier to suggest something if you pasted some code
> > > here .
> > > Cheers,
> > > Shantanu
>
> > > On Sep 8, 4:44 pm, Leo <[EMAIL 
> > > PROTECTED]<https://mail.google.com/mail?view=cm&tf=0&[EMAIL PROTECTED]>>
> > wrote:
>
> > > > Hi All
>
> > > > I just finish convert my hough transform code from Lua to C, and I try
> > > > to call this new function from Lua
> > > > however it seems it run even slower than when its implemented in Lua.
> > > > I been using some fprintf() function in C for debugging segmentation
> > > > fault, could the slow speed cause by this function? Other than that I
> > > > have no clue why it perform slower than lua, as I convert the code
> > > > from Lua into C and most procedure remain the same other than minor
> > > > change in the data structure.
> > > > any suggestion will be appreciated.
>
> > > > Cheers,
> > > > Leo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ocropus" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to