Click here to Skip to main content
15,887,027 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: In .NET enumeration is slow Pin
Richard Andrew x6418-Jan-24 12:21
professionalRichard Andrew x6418-Jan-24 12:21 
GeneralRe: In .NET enumeration is slow Pin
honey the codewitch18-Jan-24 12:42
mvahoney the codewitch18-Jan-24 12:42 
GeneralRe: In .NET enumeration is slow Pin
Graeme_Grant18-Jan-24 13:03
mvaGraeme_Grant18-Jan-24 13:03 
GeneralRe: In .NET enumeration is slow Pin
honey the codewitch18-Jan-24 13:07
mvahoney the codewitch18-Jan-24 13:07 
GeneralRe: In .NET enumeration is slow Pin
Graeme_Grant18-Jan-24 13:16
mvaGraeme_Grant18-Jan-24 13:16 
GeneralRe: In .NET enumeration is slow Pin
honey the codewitch18-Jan-24 13:22
mvahoney the codewitch18-Jan-24 13:22 
GeneralRe: In .NET enumeration is slow Pin
Graeme_Grant18-Jan-24 13:44
mvaGraeme_Grant18-Jan-24 13:44 
GeneralRe: In .NET enumeration is slow Pin
honey the codewitch18-Jan-24 13:49
mvahoney the codewitch18-Jan-24 13:49 
I feel like it might be chasing ghosts, particularly since I already get really great performance out of the thing, especially compared to .NET Regex even though that always uses ReadOnlySpan. I still beat it by 3x in the best case.

Terminal
Microsoft Regex "Lexer": [■■■■■■■■■■] 100% Found 220000 matches in 35ms
Microsoft Regex compiled "Lexer": [■■■■■■■■■■] 100% Found 220000 matches in 20ms
FAStringRunner (proto): [■■■■■■■■■■] 100% Found 220000 matches in 7ms
FATextReaderRunner: (proto) [■■■■■■■■■■] 100% Found 220000 matches in 13ms
FAStringDfaTableRunner: [■■■■■■■■■■] 100% Found 220000 matches in 10ms
FATextReaderDfaTableRunner: [■■■■■■■■■■] 100% Found 220000 matches in 14ms
FAStringStateRunner (NFA): [■■■■■■■■■■] 100% Found 220000 matches in 145ms
FAStringStateRunner (Compact NFA): [■■■■■■■■■■] 100% Found 220000 matches in 43ms
FATextReaderStateRunner (Compact NFA): [■■■■■■■■■■] 100% Found 220000 matches in 48ms
FAStringStateRunner (DFA): [■■■■■■■■■■] 100% Found 220000 matches in 11ms
FATextReaderStateRunner (DFA): [■■■■■■■■■■] 100% Found 220000 matches in 16ms
FAStringRunner (Compiled): [■■■■■■■■■■] 100% Found 220000 matches in 7ms
FATextReaderRunner (Compiled): [■■■■■■■■■■] 100% Found 220000 matches in 12ms


7ms is about what I get compared to microsoft's 20 if I'm making the fairest comparison possible (apples vs apples) 'cept mine doesn't backtrack or support a bunch of fluff. (though it lacks anchors Frown | :( )

If I can't get another 10% out of this I don't think it's worth the trouble.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

GeneralRe: In .NET enumeration is slow Pin
Graeme_Grant18-Jan-24 13:58
mvaGraeme_Grant18-Jan-24 13:58 
GeneralRe: In .NET enumeration is slow Pin
honey the codewitch18-Jan-24 14:04
mvahoney the codewitch18-Jan-24 14:04 
GeneralRe: In .NET enumeration is slow Pin
Graeme_Grant18-Jan-24 14:28
mvaGraeme_Grant18-Jan-24 14:28 
GeneralRe: In .NET enumeration is slow Pin
honey the codewitch18-Jan-24 14:29
mvahoney the codewitch18-Jan-24 14:29 
GeneralRe: In .NET enumeration is slow Pin
honey the codewitch18-Jan-24 14:09
mvahoney the codewitch18-Jan-24 14:09 
GeneralRe: In .NET enumeration is slow Pin
obermd19-Jan-24 3:47
obermd19-Jan-24 3:47 
GeneralRe: In .NET enumeration is slow Pin
Andy Brummer19-Jan-24 6:17
sitebuilderAndy Brummer19-Jan-24 6:17 
GeneralAnd so this is just a problem there? Pin
jschell18-Jan-24 5:28
jschell18-Jan-24 5:28 
GeneralRe: And so this is just a problem there? Pin
Gerry Schmitz18-Jan-24 7:18
mveGerry Schmitz18-Jan-24 7:18 
GeneralRe: And so this is just a problem there? Pin
Bruno van Dooren18-Jan-24 20:24
mvaBruno van Dooren18-Jan-24 20:24 
GeneralMS can't catch a break when it comes to search PinPopular
dandy7218-Jan-24 5:04
dandy7218-Jan-24 5:04 
GeneralRe: MS can't catch a break when it comes to search Pin
PIEBALDconsult18-Jan-24 5:08
mvePIEBALDconsult18-Jan-24 5:08 
GeneralRe: MS can't catch a break when it comes to search Pin
dandy7218-Jan-24 5:43
dandy7218-Jan-24 5:43 
GeneralRe: MS can't catch a break when it comes to search Pin
David O'Neil18-Jan-24 6:55
professionalDavid O'Neil18-Jan-24 6:55 
QuestionRe: MS can't catch a break when it comes to search Pin
fgs196318-Jan-24 7:36
fgs196318-Jan-24 7:36 
GeneralRe: MS can't catch a break when it comes to search Pin
snorkie18-Jan-24 5:46
professionalsnorkie18-Jan-24 5:46 
GeneralRe: MS can't catch a break when it comes to search Pin
David O'Neil18-Jan-24 7:00
professionalDavid O'Neil18-Jan-24 7:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.