Click here to Skip to main content
14,603,335 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: I might need to optimize this XD Pin
Jörgen Andersson2-Feb-20 23:09
professionalJörgen Andersson2-Feb-20 23:09 
GeneralRe: I might need to optimize this XD Pin
honey the codewitch2-Feb-20 23:12
mvahoney the codewitch2-Feb-20 23:12 
GeneralRe: I might need to optimize this XD Pin
Jörgen Andersson2-Feb-20 23:17
professionalJörgen Andersson2-Feb-20 23:17 
GeneralRe: I might need to optimize this XD Pin
honey the codewitch2-Feb-20 23:24
mvahoney the codewitch2-Feb-20 23:24 
GeneralRe: I might need to optimize this XD Pin
Jörgen Andersson2-Feb-20 23:36
professionalJörgen Andersson2-Feb-20 23:36 
GeneralRe: I might need to optimize this XD Pin
honey the codewitch2-Feb-20 23:57
mvahoney the codewitch2-Feb-20 23:57 
GeneralRe: I might need to optimize this XD Pin
Jörgen Andersson2-Feb-20 23:58
professionalJörgen Andersson2-Feb-20 23:58 
GeneralRe: I might need to optimize this XD Pin
honey the codewitch3-Feb-20 0:12
mvahoney the codewitch3-Feb-20 0:12 
Well, it's not on purpose per se. I mean yes, I'm spawning a lot of them, but the idea is to keep as few active or "alive" at one time as possible.

when I see a jmp with 3 operands it spawns 2 fibers in addition to a primary fiber.

That's what I don't want, since every fiber has to examine the character under the cursor which leads to many examinations of the same character. There's no way to optimize this out because it's rather the point of the fiber running in the first place. Multiple examinations are a byproduct of the NFA algorithm.

My goal is simply to reduce/eliminate the amount of jmps and especially the number of operands they have.

A pure DFA can run by examining each character only once.
Real programmers use butterflies

GeneralRe: I might need to optimize this XD Pin
ZTransform2-Feb-20 23:16
MemberZTransform2-Feb-20 23:16 
GeneralRe: I might need to optimize this XD Pin
honey the codewitch2-Feb-20 23:22
mvahoney the codewitch2-Feb-20 23:22 
GeneralRe: I might need to optimize this XD Pin
Jörgen Andersson2-Feb-20 23:35
professionalJörgen Andersson2-Feb-20 23:35 
NewsThe Rotating Lepton Model Pin
Stylianos Polychroniadis2-Feb-20 4:19
MemberStylianos Polychroniadis2-Feb-20 4:19 
GeneralRe: The Rotating Lepton Model Pin
BillWoodruff2-Feb-20 4:49
mveBillWoodruff2-Feb-20 4:49 
GeneralRe: The Rotating Lepton Model Pin
phil.o2-Feb-20 4:54
mvephil.o2-Feb-20 4:54 
GeneralRe: The Rotating Lepton Model Pin
OriginalGriff2-Feb-20 5:14
mveOriginalGriff2-Feb-20 5:14 
GeneralRe: The Rotating Lepton Model Pin
Mark_Wallace2-Feb-20 6:20
MemberMark_Wallace2-Feb-20 6:20 
GeneralRe: The Rotating Lepton Model Pin
OriginalGriff2-Feb-20 6:23
mveOriginalGriff2-Feb-20 6:23 
GeneralRe: The Rotating Lepton Model Pin
Mark_Wallace2-Feb-20 6:51
MemberMark_Wallace2-Feb-20 6:51 
GeneralRe: The Rotating Lepton Model Pin
lopatir2-Feb-20 6:28
Memberlopatir2-Feb-20 6:28 
GeneralRe: The Rotating Lepton Model Pin
Stylianos Polychroniadis2-Feb-20 7:52
MemberStylianos Polychroniadis2-Feb-20 7:52 
GeneralRe: The Rotating Lepton Model Pin
Mark_Wallace2-Feb-20 9:54
MemberMark_Wallace2-Feb-20 9:54 
GeneralRe: The Rotating Lepton Model Pin
Stylianos Polychroniadis2-Feb-20 10:17
MemberStylianos Polychroniadis2-Feb-20 10:17 
GeneralRe: The Rotating Lepton Model Pin
Mark_Wallace2-Feb-20 20:39
MemberMark_Wallace2-Feb-20 20:39 
GeneralRe: The Rotating Lepton Model Pin
Stylianos Polychroniadis2-Feb-20 22:45
MemberStylianos Polychroniadis2-Feb-20 22:45 
GeneralRe: The Rotating Lepton Model Pin
Mark_Wallace3-Feb-20 2:11
MemberMark_Wallace3-Feb-20 2:11 

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.