Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
eb1bc9c6
Commit
eb1bc9c6
authored
Jul 22, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix parsing caching
Flipped conditional meant that we were never caching the parse results :(
parent
df23c061
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/codegen/parser.cpp
src/codegen/parser.cpp
+1
-1
No files found.
src/codegen/parser.cpp
View file @
eb1bc9c6
...
...
@@ -1135,7 +1135,7 @@ AST_Module* caching_parse_file(const char* fn) {
assert
(
code
==
0
);
code
=
stat
(
cache_fn
.
c_str
(),
&
cache_stat
);
std
::
vector
<
char
>
file_data
;
if
(
code
!
=
0
&&
(
cache_stat
.
st_mtime
>
source_stat
.
st_mtime
if
(
code
=
=
0
&&
(
cache_stat
.
st_mtime
>
source_stat
.
st_mtime
||
(
cache_stat
.
st_mtime
==
source_stat
.
st_mtime
&&
cache_stat
.
st_mtim
.
tv_nsec
>
source_stat
.
st_mtim
.
tv_nsec
)))
{
oss
<<
"reading pyc file
\n
"
;
...
...
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