Comments (8)
How are you measuring the results so I can use as a baseline?
from hugo.
Rendering my site takes about 3.3 seconds. Then I comment out the transformer logic and set final to content and render the site again and it takes about 400 ms.
Steve Francia
spf13.com
@spf13
On Oct 8, 2013, at 2:28 AM, Noah Campbell [email protected] wrote:
How are you measuring the results so I can use as a baseline?
—
Reply to this email directly or view it on GitHub.
from hugo.
Yikes…that is a dramatic slow down. I'll definitely want to make that faster. The transformer "chain" is currently re-parsing the html tree every time. I will make this is a single operation and then apply all transformers.
What is "set final to content" in your last reply?
from hugo.
in site.go I did this...
func (s *Site) WritePublic(path string, content io.Reader) (err error) {
s.initTarget()
if s.Config.Verbose {
fmt.Println(path)
}
//if s.Transformer == nil {
//s.Transformer = &transform.Transformer{BaseURL: s.Config.BaseUrl}
//}
//final := new(bytes.Buffer)
//s.Transformer.Apply(content, final)
final := content
return s.Target.Publish(path, final)
}
of course you could just return content instead of final, but I like to
make things easier to undo when debugging.
Steve Francia
http://stevefrancia.com
http://spf13.com
http://twitter.com/spf13
On Tue, Oct 8, 2013 at 12:22 PM, Noah Campbell [email protected]:
Yikes…that is a dramatic slow down. I'll definitely want to make that
faster. The transformer "chain" is currently re-parsing the html tree every
time. I will make this is a single operation and then apply all
transformers.What is "set final to content" in your last reply?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/91#issuecomment-25905069
.
from hugo.
newer code is faster, but still significantly slower than before. factor of ~4x now.
from hugo.
Do you have a baseline in mind?
from hugo.
This has a 50% speed up. Reopen if it needs to be faster
from hugo.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from hugo.
Related Issues (20)
- PublishDate not aggregated when not set on sections HOT 1
- Changing frontmatter causes cached "Rebuild failed" error in server that persists until restart HOT 1
- Site build fails if frontmatter contains "videos" parameter HOT 4
- commands: Add --lineNumbersTableStyle flag to gen chromastyles
- server: Browser does not refresh after updating Sass file HOT 1
- Youtube shortcode fails on 0.125.0+ on an unlisted video (media type not resolved) HOT 19
- TestColorLuminance test fail on s390x HOT 2
- Bug with mixed case section/type to mixed case layout folders HOT 6
- Non-section pages added to main menu when using sectionPagesMenu HOT 1
- LiveReload has started to get flaky on Chrome HOT 1
- 78MB hugo binary is full of paths and urls HOT 1
- Possible infinite loop in Hugo Modules download
- Error in message when deleting a folder in `layouts`
- Apache license is not meant to be modified
- Twitter `og:description` doubly escaped by Hugo 0.125.x HOT 6
- Output folder of rendered images of AsciiDoctor Diagram extension HOT 2
- Sign Binary Releases For Verification? HOT 2
- Public site building simultaneously HOT 2
- XMPP: Post to PubSub HOT 1
- Rendering Issue caused by `<!--more-->` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo.