Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
222c3b20
Commit
222c3b20
authored
Nov 30, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug and slowness affecting evolution-test.
parent
ba479a7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
compiler.c++
c++/src/capnp/compiler/compiler.c++
+1
-10
No files found.
c++/src/capnp/compiler/compiler.c++
View file @
222c3b20
...
...
@@ -1085,16 +1085,7 @@ void Compiler::Impl::load(const SchemaLoader& loader, uint64_t id) const {
void
Compiler
::
Impl
::
loadFinal
(
const
SchemaLoader
&
loader
,
uint64_t
id
)
{
KJ_IF_MAYBE
(
node
,
findNode
(
id
))
{
KJ_IF_MAYBE
(
schema
,
node
->
getFinalSchema
())
{
loader
.
loadOnce
(
*
schema
);
}
// Schema loads can happen lazily while using the dynamic API. The caller doesn't necessarily
// know that the compiler was invoked and so won't know to clear the workspace. Probably, if
// we don't clear the workspace, it will waste memory for the lifetime of the process, whereas
// if we do clear it, we're only imposing a little more work at startup time / the first time
// each type is used.
clearWorkspace
();
node
->
loadFinalSchema
(
loader
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment