Skip to content

Commit 224f106

Browse files
committed
Removed unnecessary reporting during person activity generation
1 parent 6ec149b commit 224f106

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/main/java/ldbc/snb/datagen/generator/CommentGenerator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ public long createComments(RandomGeneratorFarm randomFarm, Forum forum, Post pos
9292
post.messageId(),
9393
replyTo.messageId());
9494
if(!isShort) replyCandidates.add(comment);
95-
9695
exporter.export(comment);
9796
if( comment.content().length() > 10 && randomFarm.get(RandomGeneratorFarm.Aspect.NUM_LIKE).nextDouble() <= 0.1 ) {
9897
likeGenerator_.generateLikes(randomFarm.get(RandomGeneratorFarm.Aspect.NUM_LIKE), forum, comment, Like.LikeType.COMMENT, exporter);

src/main/java/ldbc/snb/datagen/generator/PersonActivityGenerator.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,9 @@ public PersonActivityGenerator( PersonActivitySerializer serializer, UpdateEvent
4949
}
5050

5151
private void generateActivity( Person person, ArrayList<Person> block ) {
52-
long start = System.currentTimeMillis();
5352
generateWall(person, block);
54-
System.out.println("Time to generate person Wall "+(System.currentTimeMillis() - start)/1000.0f);
55-
start = System.currentTimeMillis();
5653
generateGroups(person, block);
57-
System.out.println("Time to generate person Groups "+(System.currentTimeMillis() - start)/1000.0f);
58-
start = System.currentTimeMillis();
5954
generateAlbums(person, block);
60-
System.out.println("Time to generate person Albums "+(System.currentTimeMillis() - start)/1000.0f);
6155
if(person.creationDate() < Dictionaries.dates.getUpdateThreshold() || !DatagenParams.updateStreams ) {
6256
factorTable_.extractFactors(person);
6357
}
@@ -153,7 +147,7 @@ public void generateActivityForBlock( int seed, ArrayList<Person> block, Context
153147
float personGenerationTime = 0.0f;
154148
float accumTime = 0;
155149
for( Person p : block ) {
156-
System.out.println("Generating activity for peron"+counter);
150+
System.out.println("Generating activity for person "+counter);
157151
long start = System.currentTimeMillis();
158152
generateActivity(p, block);
159153
if( DatagenParams.updateStreams ) {

0 commit comments

Comments
 (0)