add compression rate
This commit is contained in:
		
							parent
							
								
									35d24ed302
								
							
						
					
					
						commit
						77f4ed89d8
					
				
							
								
								
									
										2
									
								
								ch08.jl
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								ch08.jl
									
									
									
									
									
								
							| @ -18,6 +18,8 @@ using CodecBzip2 | ||||
| compressed = read("puzzles.csv.bz2") | ||||
| plain = transcode(Bzip2Decompressor, compressed) | ||||
| 
 | ||||
| length(plain) / length(compressed) | ||||
| 
 | ||||
| open("puzzles.csv", "w") do io | ||||
|     println(io, "PuzzleId,FEN,Moves,Rating,RatingDeviation," * | ||||
|                 "Popularity,NbPlays,Themes,GameUrl") | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user