Yengine: do use SourceHashCode
parent
a2208e5c8c
commit
5485ba2ae6
|
@ -87,7 +87,6 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||||
private string m_ScriptBasePath;
|
private string m_ScriptBasePath;
|
||||||
private bool m_Enabled = false;
|
private bool m_Enabled = false;
|
||||||
public bool m_StartProcessing = false;
|
public bool m_StartProcessing = false;
|
||||||
public bool m_UseSourceHashCode = false;
|
|
||||||
private Dictionary<UUID, ArrayList> m_ScriptErrors =
|
private Dictionary<UUID, ArrayList> m_ScriptErrors =
|
||||||
new Dictionary<UUID, ArrayList>();
|
new Dictionary<UUID, ArrayList>();
|
||||||
private Dictionary<UUID, List<UUID>> m_ObjectItemList =
|
private Dictionary<UUID, List<UUID>> m_ObjectItemList =
|
||||||
|
@ -208,7 +207,6 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||||
if(!m_Enabled)
|
if(!m_Enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_UseSourceHashCode = m_Config.GetBoolean("UseSourceHashCode", false);
|
|
||||||
numThreadScriptWorkers = m_Config.GetInt("NumThreadScriptWorkers", 1);
|
numThreadScriptWorkers = m_Config.GetInt("NumThreadScriptWorkers", 1);
|
||||||
|
|
||||||
m_TraceCalls = m_Config.GetBoolean("TraceCalls", false);
|
m_TraceCalls = m_Config.GetBoolean("TraceCalls", false);
|
||||||
|
|
|
@ -173,7 +173,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
|
||||||
if(i < 0)
|
if(i < 0)
|
||||||
i = len - 1;
|
i = len - 1;
|
||||||
}
|
}
|
||||||
if((i >= len) || !m_Engine.m_UseSourceHashCode)
|
if((i >= len))
|
||||||
{
|
{
|
||||||
// Source consists of nothing but // comments and whitespace,
|
// Source consists of nothing but // comments and whitespace,
|
||||||
// or we are being forced to use the asset-id as the key, to
|
// or we are being forced to use the asset-id as the key, to
|
||||||
|
|
Loading…
Reference in New Issue