General questions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi again,

I was just wondering: My current project consists of two Dlls - one grabs
lots of data out of e.g. files and passes it sequentially two a second Dll
which handles the data (e.g. searches for specific binary patterns).

Now, I have to questions:

1. Does the fact that the whole routine is split up in 2 functions (each on
located in an own dll) decrease the speed significantly (the only parameter
passed between the two function is a pointer to the data)?

2. As I have to do binary searching for specific contents - which algorithm
is best for this (average data size ca. 1500 Bytes per call)?

Thanks a lot and merry christmas

Peter
 
1. Does the fact that the whole routine is split up in 2 functions (each on
located in an own dll) decrease the speed significantly (the only parameter
passed between the two function is a pointer to the data)?

No - I'd doubt it'd have any significant effect.
2. As I have to do binary searching for specific contents - which algorithm
is best for this (average data size ca. 1500 Bytes per call)?

I don't know - I suggest you search using Google for something that
fits your data usage. You could try:
http://en.wikipedia.org/wiki/String_searching_algorithm

Dave
 
Back
Top