Search found 2654 matches

by rolliebollocks
Apr 08, 2016 20:18
Forum: General
Topic: Linux threw this error.. Anyone see it before?
Replies: 18
Views: 3122

Re: Linux threw this error.. Anyone see it before?

It's not an out-of-memory error. Try increasing the stack size.
by rolliebollocks
Apr 08, 2016 18:31
Forum: General
Topic: Linux threw this error.. Anyone see it before?
Replies: 18
Views: 3122

Re: Linux threw this error.. Anyone see it before?

I reproduced the error. On 2 million iterations, the code works. On 4 million iterations it segfaults. I dunno. #ifndef NULL #define NULL 0 #endif #DEFINE DBLQUOTE ascii(34) dim shared as string*1 ASCII(255) for i as integer = 0 to 255 ASCII(i) = chr(i) next function unEscape( byval s as string ) as...
by rolliebollocks
Apr 08, 2016 18:13
Forum: General
Topic: I need someone to defeat my string splitting algo
Replies: 113
Views: 12147

Re: I need someone to defeat my string splitting algo

I love you guys. Nice work.
by rolliebollocks
Apr 07, 2016 21:20
Forum: General
Topic: Linux threw this error.. Anyone see it before?
Replies: 18
Views: 3122

Re: Linux threw this error.. Anyone see it before?

I'm going to attempt to build the string a zstring ptr in order to eliminate that as a possibility. If that solves the problem I will try to come up with some sort of test which reproduces the segfault and then others (who understand the compiler better) can determine if it's a bug or not. At this p...
by rolliebollocks
Apr 07, 2016 19:58
Forum: General
Topic: I need someone to defeat my string splitting algo
Replies: 113
Views: 12147

Re: I need someone to defeat my string splitting algo

The revised split with the local list is about 4x faster for me as well.
by rolliebollocks
Apr 06, 2016 21:26
Forum: General
Topic: Linux threw this error.. Anyone see it before?
Replies: 18
Views: 3122

Re: Linux threw this error.. Anyone see it before?

I've gone over the code a dozen times now. The offending function creates a 30meg string which it then returns. It does not always throw a segfault, but occasionally it does, only in the instance where the string is greater than 10 megs. Even if I track down the error I'm not sure there's anything I...
by rolliebollocks
Apr 05, 2016 20:26
Forum: General
Topic: I need someone to defeat my string splitting algo
Replies: 113
Views: 12147

Re: I need someone to defeat my string splitting algo

I can change it over to byref, but the pass is not where the bottle neck is. And I also mostly cut the code of this sub and run it within routines so there is no pass at all, and no need to call it. I've found byval generally faster for simple data types, and byref faster for complex UDTs.
by rolliebollocks
Apr 05, 2016 17:46
Forum: General
Topic: Linux threw this error.. Anyone see it before?
Replies: 18
Views: 3122

Re: Linux threw this error.. Anyone see it before?

Debuggers are for ^&~* jobs. (j/k)

I'm running through the code now. I'll report what I find. The mere fact that it logs different types of errors should be an indication as to how odd this issue is.
by rolliebollocks
Apr 05, 2016 16:12
Forum: General
Topic: I need someone to defeat my string splitting algo
Replies: 113
Views: 12147

Re: I need someone to defeat my string splitting algo

fxm's : 4.9 x 10^-3 Mine( spots index) : 9.7 x 10^-3 Original : 2.16 Yours : 6.0 x 10^-1 Likely redundant calls to isSplittingChar are slowing it down. And then it segfaults on the destructor.
by rolliebollocks
Apr 05, 2016 15:44
Forum: General
Topic: Linux threw this error.. Anyone see it before?
Replies: 18
Views: 3122

Re: Linux threw this error.. Anyone see it before?

It's a segfault, but I can't figure out how it's being triggered. It would take a lot of effort on someone else's end to replicate the conditions, but it happens on different machines, with different data being passed to the same function. I'm batch processing some files, basically, and it calls to ...
by rolliebollocks
Apr 05, 2016 4:35
Forum: Sources, Examples, Tips and Tricks
Topic: JSON Parser
Replies: 3
Views: 1550

Re: JSON Parser

The most recent copy of my json parser is contained in the first post. There have been some updates, bug fixes, and assorted goodies.
by rolliebollocks
Apr 04, 2016 22:31
Forum: General
Topic: Linux threw this error.. Anyone see it before?
Replies: 18
Views: 3122

Linux threw this error.. Anyone see it before?

Error in `./stat_builder': corrupted double-linked list: 0xbf849a50
by rolliebollocks
Apr 03, 2016 22:53
Forum: General
Topic: ? invalid pointer ? [SOLVED]
Replies: 7
Views: 795

Re: ? invalid pointer ?

I already increased stack space, so I'll just stick it on the heap. Thanks guys. I do compile linux versions so I'll take a look to see if there is an issue increasing the stack on linux systems.
by rolliebollocks
Apr 03, 2016 22:51
Forum: General
Topic: I need someone to defeat my string splitting algo
Replies: 113
Views: 12147

Re: I need someone to defeat my string splitting algo

There does not appear to be a significant increase. I ran timer test about a dozen times and the results were inconsistent but average out to about even.
by rolliebollocks
Apr 03, 2016 17:53
Forum: General
Topic: I need someone to defeat my string splitting algo
Replies: 113
Views: 12147

Re: I need someone to defeat my string splitting algo

I'm getting a 33% increase in speed from my second attempt. Excellent. Thank you fxm.