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: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen20-Jan-24 9:30
trønderen20-Jan-24 9:30 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch20-Jan-24 10:00
mvahoney the codewitch20-Jan-24 10:00 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen20-Jan-24 10:12
trønderen20-Jan-24 10:12 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch20-Jan-24 19:04
mvahoney the codewitch20-Jan-24 19:04 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen20-Jan-24 10:01
trønderen20-Jan-24 10:01 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch20-Jan-24 10:03
mvahoney the codewitch20-Jan-24 10:03 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
Amarnath S20-Jan-24 13:45
professionalAmarnath S20-Jan-24 13:45 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch20-Jan-24 15:04
mvahoney the codewitch20-Jan-24 15:04 
Not in the instance I'm using it in without a rework. I'd have to change the structure of the code, which is made more complicated by the fact that it's a CodeDOM tree instead of real code.

Before I do that, I want to make sure I'm not (A) doing something for nothing, and more importantly (B) introducing clutter or extra overhead in an attempt to optimize.

I've included a chunk of the state machine runner code which should illustrate the issue I hope.

C#
int p;
int l;
int c;
ch = -1;
this.capture.Clear();
if ((this.current == -2)) {
    this.Advance();
}
p = this.position;
l = this.line;
c = this.column;
// q0:
// [\t-\n\r ]
if (((((this.current >= 9) 
            && (this.current <= 10)) 
            || (this.current == 13)) 
            || (this.current == 32))) {
    this.Advance();
    goto q1;
}
// [A-Z_hj-kmqxz]
if ((((((((((this.current >= 65) 
            && (this.current <= 90)) 
            || (this.current == 95)) 
            || (this.current == 104)) 
            || ((this.current >= 106) 
            && (this.current <= 107))) 
            || (this.current == 109)) 
            || (this.current == 113)) 
            || (this.current == 120)) 
            || (this.current == 122))) {
    this.Advance();
    goto q2;
}
// [a]
if ((this.current == 97)) {
    this.Advance();
    goto q3;
}
// [b]
if ((this.current == 98)) {
    this.Advance();
    goto q22;
}
// ...snip...
q1:
// [\t-\n\r ]
if (((((this.current >= 9) 
            && (this.current <= 10)) 
            || (this.current == 13)) 
            || (this.current == 32))) {
    this.Advance();
    goto q1;
}
return FAMatch.Create(2, this.capture.ToString(), p, l, c);
q2:
// [0-9A-Z_a-z]
if ((((((this.current >= 48) 
            && (this.current <= 57)) 
            || ((this.current >= 65) 
            && (this.current <= 90))) 
            || (this.current == 95)) 
            || ((this.current >= 97) 
            && (this.current <= 122)))) {
    this.Advance();
    goto q2;
}
return FAMatch.Create(0, this.capture.ToString(), p, l, c);

Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix

GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
11917640 Member 20-Jan-24 18:53
11917640 Member 20-Jan-24 18:53 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch20-Jan-24 18:58
mvahoney the codewitch20-Jan-24 18:58 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
11917640 Member 20-Jan-24 22:07
11917640 Member 20-Jan-24 22:07 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch20-Jan-24 23:28
mvahoney the codewitch20-Jan-24 23:28 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
11917640 Member 21-Jan-24 0:01
11917640 Member 21-Jan-24 0:01 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch21-Jan-24 0:17
mvahoney the codewitch21-Jan-24 0:17 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
Jacquers21-Jan-24 17:37
Jacquers21-Jan-24 17:37 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch21-Jan-24 23:04
mvahoney the codewitch21-Jan-24 23:04 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
Stuart Dootson22-Jan-24 1:24
professionalStuart Dootson22-Jan-24 1:24 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch22-Jan-24 4:37
mvahoney the codewitch22-Jan-24 4:37 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
Simbosan21-Jan-24 20:02
Simbosan21-Jan-24 20:02 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch21-Jan-24 23:03
mvahoney the codewitch21-Jan-24 23:03 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen22-Jan-24 10:18
trønderen22-Jan-24 10:18 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch22-Jan-24 10:20
mvahoney the codewitch22-Jan-24 10:20 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
trønderen22-Jan-24 10:43
trønderen22-Jan-24 10:43 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
Chris Copeland22-Jan-24 3:29
mveChris Copeland22-Jan-24 3:29 
GeneralRe: Does anyone know of a good guide to the MSIL JIT compiler? Pin
honey the codewitch22-Jan-24 4:36
mvahoney the codewitch22-Jan-24 4:36 

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.