mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 15:46:05 +02:00
Fixed issue of file hashing causing too much rebuilding
This commit is contained in:
parent
592471434f
commit
807b71d433
10 changed files with 53 additions and 22 deletions
|
@ -7,6 +7,7 @@ using Beefy.utils;
|
|||
using System.Diagnostics;
|
||||
using System.Threading;
|
||||
using IDE.Util;
|
||||
using IDE.util;
|
||||
|
||||
namespace IDE
|
||||
{
|
||||
|
@ -316,6 +317,7 @@ namespace IDE
|
|||
public class ProjectSourceCompileInstance
|
||||
{
|
||||
public String mSource ~ delete _;
|
||||
public SourceHash mSourceHash;
|
||||
public IdSpan mSourceCharIdData ~ _.Dispose();
|
||||
public int32 mRefCount = 1;
|
||||
|
||||
|
@ -1126,7 +1128,7 @@ namespace IDE
|
|||
}
|
||||
}
|
||||
|
||||
public void ProjectSourceCompiled(ProjectSource projectSource, String source, IdSpan sourceCharIdData, bool canMoveSourceString = false)
|
||||
public void ProjectSourceCompiled(ProjectSource projectSource, String source, SourceHash sourceHash, IdSpan sourceCharIdData, bool canMoveSourceString = false)
|
||||
{
|
||||
using (mMonitor.Enter())
|
||||
{
|
||||
|
@ -1141,6 +1143,7 @@ namespace IDE
|
|||
source.MoveTo(projectSourceCompileInstance.mSource, true);
|
||||
else
|
||||
projectSourceCompileInstance.mSource.Set(source);
|
||||
projectSourceCompileInstance.mSourceHash = sourceHash;
|
||||
projectSourceCompileInstance.mSourceCharIdData = sourceCharIdData.Duplicate();
|
||||
|
||||
ProjectItem* keyPtr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue