mirror of
				https://github.com/NotAShelf/hexxy.git
				synced 2025-10-31 03:12:39 +00:00 
			
		
		
		
	[hexxy] DEV branch - extremely speed up hex encoding
This commit is contained in:
		
					parent
					
						
							
								c5c01b4f77
							
						
					
				
			
			
				commit
				
					
						b05f72ab50
					
				
			
		
					 1 changed files with 0 additions and 8 deletions
				
			
		
							
								
								
									
										8
									
								
								hexxy.go
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								hexxy.go
									
										
									
									
									
								
							|  | @ -7,7 +7,6 @@ import ( | |||
| 	"io" | ||||
| 	"log" | ||||
| 	"os" | ||||
| 	"runtime/pprof" | ||||
| 	"strconv" | ||||
| 
 | ||||
| 	"github.com/jessevdk/go-flags" | ||||
|  | @ -277,7 +276,6 @@ func XXD(r io.Reader, w io.Writer, filename string, color *Color) error { | |||
| 				} else { | ||||
| 					w.Write(char) | ||||
| 				} | ||||
| 
 | ||||
| 				c++ | ||||
| 
 | ||||
| 				if k == octs*groupSize { | ||||
|  | @ -462,12 +460,6 @@ func main() { | |||
| 		Debug = log.Printf | ||||
| 	} | ||||
| 
 | ||||
| 	f, err := os.Create("mem.cpu") | ||||
| 	defer f.Close() | ||||
| 
 | ||||
| 	pprof.StartCPUProfile(f) | ||||
| 	defer pprof.StopCPUProfile() | ||||
| 
 | ||||
| 	if err := Hexxy(args); err != nil { | ||||
| 		log.Fatal(err) | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 mizi
				mizi