mirror of
				https://github.com/NotAShelf/hexxy.git
				synced 2025-10-31 11:22:42 +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" | 	"io" | ||||||
| 	"log" | 	"log" | ||||||
| 	"os" | 	"os" | ||||||
| 	"runtime/pprof" |  | ||||||
| 	"strconv" | 	"strconv" | ||||||
| 
 | 
 | ||||||
| 	"github.com/jessevdk/go-flags" | 	"github.com/jessevdk/go-flags" | ||||||
|  | @ -277,7 +276,6 @@ func XXD(r io.Reader, w io.Writer, filename string, color *Color) error { | ||||||
| 				} else { | 				} else { | ||||||
| 					w.Write(char) | 					w.Write(char) | ||||||
| 				} | 				} | ||||||
| 
 |  | ||||||
| 				c++ | 				c++ | ||||||
| 
 | 
 | ||||||
| 				if k == octs*groupSize { | 				if k == octs*groupSize { | ||||||
|  | @ -462,12 +460,6 @@ func main() { | ||||||
| 		Debug = log.Printf | 		Debug = log.Printf | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	f, err := os.Create("mem.cpu") |  | ||||||
| 	defer f.Close() |  | ||||||
| 
 |  | ||||||
| 	pprof.StartCPUProfile(f) |  | ||||||
| 	defer pprof.StopCPUProfile() |  | ||||||
| 
 |  | ||||||
| 	if err := Hexxy(args); err != nil { | 	if err := Hexxy(args); err != nil { | ||||||
| 		log.Fatal(err) | 		log.Fatal(err) | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 mizi
				mizi