Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P7674
T206654: A variant of P7672
Active
Public
Actions
Authored by
Platonides
on Oct 12 2018, 3:20 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
ORES
Referenced Files
F26558245: T206654: A variant of P7672
Oct 12 2018, 3:20 PM
2018-10-12 15:20:36 (UTC+0)
Subscribers
None
#!/usr/bin/env python3
import
pickle
from
mwparserfromhell
import
__version__
,
parse
from
ores.util
import
timeout
print
(
"mwparserfromhell version:"
,
__version__
)
wikitext_bytes
=
open
(
"111186880.txt"
,
"rb"
)
.
read
()
wikitext
=
wikitext_bytes
.
decode
(
"utf-8"
)
# unpickled_wikitext = pickle.loads(pickle.dumps(wikitext))
ast
=
timeout
(
parse
,
wikitext
,
seconds
=
5
)
Event Timeline
Platonides
created this paste.
Oct 12 2018, 3:20 PM
2018-10-12 15:20:36 (UTC+0)
Platonides
mentioned this in
T206654: ORES workers using dramatically higher CPU, increasing linearly with time
.
Oct 12 2018, 3:23 PM
2018-10-12 15:23:34 (UTC+0)
Log In to Comment