• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: SVC-3691
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Haravikk Mistral
Votes: 2
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

State changes considerably slower under Mono-LSL than LSO-LSL

Created: 18/Jan/09 09:29 AM   Updated: 27/Oct/09 09:23 AM
Return to search
Component/s: Scripts
Affects Version/s: 1.21.0 Server, 1.22.1 Server, 1.22.2 Server, 1.22.3 Server, 1.22.4 Server, 1.23.4 Server, 1.24 Server, 1.25 Server, 1.26 Server, 1.27 Server, 1.30 Server
Fix Version/s: None

Issue Links:
Duplicate
 
Relates
 

Last Triaged: 27/Oct/09 09:23 AM
Linden Lab Issue ID: DEV-41889


 Description  « Hide
I noticed a while back in SVC-2750 that on Mono servers state-changes were extremely slow, this however was resolved, bringing state-changes back in line with previous server versions.

However, I've recently tested their performance and found that state changes under Mono are now around 100 times slower than those under LSO-LSL! I don't know how long ago this happened, but it's quite a significant performance difference, especially scripts which switch state in order to more efficiently process various types of event, or to implement much better structured code.

Utilising the script at the end of this issue, I get the following results in the same simulator:
LSO-LSL: 0.000213 seconds/state-change
Mono-LSL: 0.026951 seconds/state-change

Mono-LSL state-changes are over 126 times slower!

integer counter = 0;

default {
    state_entry() {
        llResetTime();
        state state1;
    }
}

state state1 {
    state_entry() { state state2; }
}

state state2 {
    state_entry() {
        if ((++counter) >= 100) {
            float time = llGetTime() / 200.0;
            llOwnerSay((string)time + " seconds/state-change");
        } else state state1;
    }
}


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Gellan Glenelg added a comment - 18/Jan/09 09:58 AM
Added {code} tags

Haravikk Mistral added a comment - 18/Jan/09 10:14 AM
Ah thank you, these could do with being more obvious to find!

Imaze Rhiano added a comment - 18/Oct/09 10:43 PM
CONFIRMED

You are at 251409.1, 246176.8, 52.6 in Sedna located at sim3630.agni.lindenlab.com (216.82.22.111:13001)
Second Life Server 1.30.2.135876

MONO:
0.050116 seconds/state-change
0.051362 seconds/state-change

LSL:
0.000448 seconds/state-change
0.000471 seconds/state-change