Click here to Skip to main content
15,879,474 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 3:05
mvahoney the codewitch29-Jan-21 3:05 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
dandy7229-Jan-21 4:39
dandy7229-Jan-21 4:39 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 5:48
mvahoney the codewitch29-Jan-21 5:48 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
dandy7229-Jan-21 10:12
dandy7229-Jan-21 10:12 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 10:38
mvahoney the codewitch29-Jan-21 10:38 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
dandy7229-Jan-21 12:21
dandy7229-Jan-21 12:21 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 12:26
mvahoney the codewitch29-Jan-21 12:26 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
k505429-Jan-21 6:06
mvek505429-Jan-21 6: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 6:30
mvahoney the codewitch29-Jan-21 6:30 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
k505429-Jan-21 6:46
mvek505429-Jan-21 6:46 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 6:59
mvahoney the codewitch29-Jan-21 6:59 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
Stuart Dootson29-Jan-21 6:49
professionalStuart Dootson29-Jan-21 6:49 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
Sander Rossel29-Jan-21 9:24
professionalSander Rossel29-Jan-21 9:24 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 9:42
mvahoney the codewitch29-Jan-21 9:42 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
Sander Rossel29-Jan-21 11:19
professionalSander Rossel29-Jan-21 11:19 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 11:30
mvahoney the codewitch29-Jan-21 11:30 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
k505429-Jan-21 10:15
mvek505429-Jan-21 10:15 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
Sander Rossel29-Jan-21 11:19
professionalSander Rossel29-Jan-21 11:19 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
k505430-Jan-21 3:50
mvek505430-Jan-21 3:50 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
trønderen29-Jan-21 12:30
trønderen29-Jan-21 12:30 
GeneralRe: strpbrk() in Microsoft's VCLib is *slow* Pin
honey the codewitch29-Jan-21 13:38
mvahoney the codewitch29-Jan-21 13:38 
RantMicrosoft's Clownish Developer Prompt Pin
honey the codewitch29-Jan-21 1:17
mvahoney the codewitch29-Jan-21 1:17 
GeneralRe: Microsoft's Clownish Developer Prompt Pin
OriginalGriff29-Jan-21 1:20
mveOriginalGriff29-Jan-21 1:20 
GeneralRe: Microsoft's Clownish Developer Prompt Pin
honey the codewitch29-Jan-21 1:35
mvahoney the codewitch29-Jan-21 1:35 
GeneralRe: Microsoft's Clownish Developer Prompt Pin
Randor 29-Jan-21 1:50
professional Randor 29-Jan-21 1: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.