mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	Remove page module dependence on opening files
The site is responsible for reading files, page only operates on buffers.
This commit is contained in:
		@@ -16,9 +16,3 @@ func BenchmarkParsePage(b *testing.B) {
 | 
			
		||||
		p = p
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func BenchmarkNewPage(b *testing.B) {
 | 
			
		||||
	for i := 0; i < b.N; i++ {
 | 
			
		||||
		NewPage("redis.cn.md")
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user