Severe RegEx Performance Problems

Hello,

I have written a pretty large set of RegEx operations that run quite speedily on my MacBook Pro, but when I move the code to a Windows server (that will be the final deployment machine), the code runs about 1/1000 as fast. What's going on here? The MacBook Pro is a Core 2 Duo and the Windows machine is a 3.0Ghz P4. Both have 2GB+ of RAM.

Please tell me this isn't a hardware issue!

Thanks much in advance!

- Brent

[456 byte] By [BrentHechta] at [2007-11-27 11:44:45]
# 1

It isn't a hardware issue.

prometheuzza at 2007-7-29 17:57:43 > top of Java-index,Java Essentials,Java Programming...
# 2

I would profile before the finger pointing.

BigDaddyLoveHandlesa at 2007-7-29 17:57:43 > top of Java-index,Java Essentials,Java Programming...
# 3

> Hello,

>

> I have written a pretty large set of RegEx operations

> that run quite speedily on my MacBook Pro, but when I

> move the code to a Windows server (that will be the

> final deployment machine), the code runs about 1/1000

> as fast. What's going on here? The MacBook Pro is a

> Core 2 Duo and the Windows machine is a 3.0Ghz P4.

> Both have 2GB+ of RAM.

>

> Please tell me this isn't a hardware issue!

>

> Thanks much in advance!

>

> - Brent

Without example code it is impossible to determine.

(T)

tswaina at 2007-7-29 17:57:43 > top of Java-index,Java Essentials,Java Programming...
# 4

Sounds like a threading issue to me. What leads you to believe it's a regex problem?

uncle_alicea at 2007-7-29 17:57:43 > top of Java-index,Java Essentials,Java Programming...
# 5

1/1000 as fast?

Hmm. Did you take into consideration that the Windows machine

is doing updates, update checks, sending a list of your favorite

books to Windows HQ, running the 30 aol/realplayer/quicktime

background tasks in your bloated startup menu, emailing that picture

of you drunk at that office halloween party to whoever hacked your

computer, running 1,000 astronomy calculations for the SETI hackers

that slaved your computer...

Its a testament to how fast Windows Server is that it can do so many

things.

All kidding aside though, where did you get 1/1000 as fast from?

Its completely possible that there was a resource hungry task

running temporarily. Or is it always so slow?

TuringPesta at 2007-7-29 17:57:43 > top of Java-index,Java Essentials,Java Programming...