Click here to Skip to main content
15,558,352 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: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 4:05
mvahoney the codewitch29-Jan-21 4:05 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
dandy7229-Jan-21 5:39
dandy7229-Jan-21 5:39 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 6:48
mvahoney the codewitch29-Jan-21 6:48 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
dandy7229-Jan-21 11:12
dandy7229-Jan-21 11:12 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 11:38
mvahoney the codewitch29-Jan-21 11:38 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
dandy7229-Jan-21 13:21
dandy7229-Jan-21 13:21 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 13:26
mvahoney the codewitch29-Jan-21 13:26 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
k505429-Jan-21 7:06
mvek505429-Jan-21 7:06 
honey the codewitch wrote:
Does anyone know if GCC will work on Windows without some virtual env like MiniGW installed?

It's probably not the compiler so much as the supplied libc. You could peruse the source for glibc and try to write your own strpbrk() based on that. Though the odd occasion that I've tried to spelunk through the glibc sources, about 50% of the time it becomes a bit like trying to solve a maze in Zork. And, of course, it raises possible GPL issues, so maybe looking at the BSD sources might be a better choice.
Wasn't there a post a few weeks ago bout SSE and string ops? Maybe that's a direction to consider if you want to write your own.

On a related note, it might be interesting to see how a WSL instance compares in performance to a Windows native instance. The results of that might be skewed though, if WSL uses virtual disks, so maybe a better comparison would be Linux and Windows, both in a VM on the same host. At least then both instances would have the same virtual disk drivers, so, presumably, the difference would be down to the strpbrk() implementation.
Keep Calm and Carry On

GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 7:30
mvahoney the codewitch29-Jan-21 7:30 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
k505429-Jan-21 7:46
mvek505429-Jan-21 7:46 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 7:59
mvahoney the codewitch29-Jan-21 7:59 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
Stuart Dootson29-Jan-21 7:49
professionalStuart Dootson29-Jan-21 7:49 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
Sander Rossel29-Jan-21 10:24
professionalSander Rossel29-Jan-21 10:24 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 10:42
mvahoney the codewitch29-Jan-21 10:42 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
Sander Rossel29-Jan-21 12:19
professionalSander Rossel29-Jan-21 12:19 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 12:30
mvahoney the codewitch29-Jan-21 12:30 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
k505429-Jan-21 11:15
mvek505429-Jan-21 11:15 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
Sander Rossel29-Jan-21 12:19
professionalSander Rossel29-Jan-21 12:19 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
k505430-Jan-21 4:50
mvek505430-Jan-21 4:50 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
trønderen29-Jan-21 13:30
trønderen29-Jan-21 13:30 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 14:38
mvahoney the codewitch29-Jan-21 14:38 
RantMicrosoft's Clownish Developer Prompt Pin
honey the codewitch29-Jan-21 2:17
mvahoney the codewitch29-Jan-21 2:17 
GeneralRe: Microsoft's Clownish Developer Prompt Pin
OriginalGriff29-Jan-21 2:20
mveOriginalGriff29-Jan-21 2:20 
GeneralRe: Microsoft's Clownish Developer Prompt Pin
honey the codewitch29-Jan-21 2:35
mvahoney the codewitch29-Jan-21 2:35 
GeneralRe: Microsoft's Clownish Developer Prompt Pin
Randor 29-Jan-21 2:50
professional Randor 29-Jan-21 2:50 

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.