Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ai
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
ai
Commits
0daebccc
Commit
0daebccc
authored
Apr 10, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git pu
parent
f5abce70
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
35 deletions
+3
-35
end.js
end.js
+1
-11
final.js
final.js
+1
-12
final1000.js
final1000.js
+1
-12
No files found.
end.js
View file @
0daebccc
...
...
@@ -126,18 +126,8 @@ async function run(root,name, directory, timestamp) {
las
.
push
(
last
[
i
])
}
const
json
=
require
(
'
big-json
'
);
const
stringifyStream
=
json
.
createStringifyStream
({
body
:
las
});
stringifyStream
.
on
(
'
data
'
,
function
(
strChunk
)
{
// => BIG_POJO will be sent out in JSON chunks as the object is traversed
createfileADV
(
root
,
timestamp
,
name
,
strChunk
)
});
createfileADV
(
root
,
timestamp
,
name
,
JSON
.
stringify
(
las
,
null
,
2
))
last
=
[]
}
...
...
final.js
View file @
0daebccc
...
...
@@ -124,18 +124,7 @@ async function run(root, name, directory, timestamp) {
}
const
json
=
require
(
'
big-json
'
);
const
stringifyStream
=
json
.
createStringifyStream
({
body
:
las
});
stringifyStream
.
on
(
'
data
'
,
function
(
strChunk
)
{
console
.
log
(
strChunk
)
// => BIG_POJO will be sent out in JSON chunks as the object is traversed
createfileADV
(
root
,
timestamp
,
name
,
strChunk
)
});
createfileADV
(
root
,
timestamp
,
name
,
JSON
.
stringify
(
las
,
null
,
2
))
last
=
[]
}
...
...
final1000.js
View file @
0daebccc
...
...
@@ -125,22 +125,11 @@ async function run(root,name, directory, timestamp) {
let
las
=
[]
for
(
let
i
=
0
;
i
<
last
.
length
;
i
++
)
{
if
(
i
<
last
.
length
)
if
(
last
[
i
].
total
>
0
)
las
.
push
(
last
[
i
])
}
const
json
=
require
(
'
big-json
'
);
const
stringifyStream
=
json
.
createStringifyStream
({
body
:
las
});
stringifyStream
.
on
(
'
data
'
,
function
(
strChunk
)
{
// => BIG_POJO will be sent out in JSON chunks as the object is traversed
createfileADV
(
root
,
timestamp
,
name
,
strChunk
)
});
createfileADV
(
root
,
timestamp
,
name
,
JSON
.
stringify
(
las
,
null
,
2
))
last
=
[]
}
...
...
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