Commit Graph

4780 Commits

Author SHA1 Message Date
Parker Moore 0511ece2f5 Use String#<< instead of String#+=
I just couldn’t believe this but look:

~/jekyll/jekyll#master$ ruby benchmark/string-concat
Calculating -------------------------------------
                  +=      6367 i/100ms
                  <<    128697 i/100ms
-------------------------------------------------
                  +=     1704.3 (±0.6%) i/s -      12734 in   7.472170s
                  <<  4381212.4 (±6.3%) i/s -   21878490 in   5.014899s

WOW.
2014-10-22 00:58:20 -07:00
Parker Moore 1395d5686b Optimize more URL#sanitize_url 2014-10-22 00:57:53 -07:00
Parker Moore 3227c4ecea Use #tr instead of #gsub 2014-10-22 00:57:25 -07:00
Parker Moore b9c4fc93d7 Use flat_map instead of map.flatten 2014-10-22 00:57:06 -07:00
Parker Moore 95e96a0f83 Add a benchmarking script for string-concat 2014-10-22 00:56:54 -07:00
Parker Moore c92ad3b595 Update history to reflect merge of #3018 [ci skip] 2014-10-20 21:29:31 -07:00
Parker Moore 3285aebd4f Merge pull request #3018 from jekyll/webrick-fancy-indexing 2014-10-20 21:28:35 -07:00
Parker Moore 9cc3085dd0 Turn on FancyIndexing. 2014-10-20 21:23:30 -07:00
Parker Moore 5b37ad57cc If `--verbose` is given, debug the sh*t out of that. 2014-10-20 21:23:22 -07:00
Parker Moore 3dedcbf894 Sort webrick_options 2014-10-20 21:23:00 -07:00
Parker Moore 2ca2990f6b Update history to reflect merge of #2997 [ci skip] 2014-10-20 20:11:26 -07:00
Parker Moore 7fd9f102c0 Merge pull request #2997 from jekyll/utils-slugify 2014-10-20 20:11:04 -07:00
Parker Moore cc3a31e363 Update history to reflect merge of #2986 [ci skip] 2014-10-20 20:09:39 -07:00
Parker Moore 5ed4638400 Merge pull request #2986 from tamagokun/where_filters_enumerable 2014-10-20 20:09:21 -07:00
Parker Moore a64e7e8814 Update history to reflect merge of #3011 [ci skip] 2014-10-20 20:08:04 -07:00
Parker Moore 6723db8157 Merge pull request #3011 from fhemberger/master 2014-10-20 20:07:09 -07:00
Parker Moore 996db6912d Update history to reflect merge of #3017 [ci skip] 2014-10-20 09:57:50 -07:00
Parker Moore c77d06446d Merge pull request #3017 from glaucocustodio/master 2014-10-20 09:57:04 -07:00
Glauco Custódio 68c0e8f847 Hash#each_key instead of Hash#keys.each. Faster code. 2014-10-20 10:10:29 -02:00
Parker Moore 4b4a46579a Update history to reflect merge of #3013 [ci skip] 2014-10-18 12:30:42 -07:00
Parker Moore c95f4c0f5b Merge pull request #3013 from jekyll/revert-2921-post-dest 2014-10-18 12:21:28 -07:00
Parker Moore 078b2785e4 Revert "Make permalink parsing consistent with pages" 2014-10-18 12:07:44 -07:00
Frederic Hemberger 1d726a87b9 Docs: Clarify behavior of 'categories' in permalinks 2014-10-18 08:29:26 +02:00
Parker Moore 90b6723288 Update history to reflect merge of #3010 [ci skip] 2014-10-17 12:30:47 -07:00
Parker Moore a9d7031e7c Merge pull request #3010 from croaky/master 2014-10-17 12:25:22 -07:00
Dan Croak db220a9de6 Add FormKeep to resources as Jekyll form backend
Launched by [thoughtbot] today.
Intended to be Jekyll-friendly with
no iframes, JavaScript embeds, or CSS overrides.
It just generates a URL to use as your form's `action` endpoint.

It has a very simple webhook system, which means
it can automatically forward all submissions to a webhook of your choosing.
We've been using [Zapier] to handle the heavy lifting of
sending form data along from FormKeep to MailChimp, Trello, etc.

[thoughtbot]: https://thoughtbot.com
[Zapier]: http://zapier.com
2014-10-17 11:00:44 -07:00
Parker Moore 9f5835871b Utils.slugify: Don't create new objects when gsubbing 2014-10-12 16:18:40 -07:00
Parker Moore b62415019b Update history to reflect merge of #2994 [ci skip] 2014-10-12 15:49:51 -07:00
Parker Moore 00d29e7e77 Merge pull request #2994 from jekyll/fixes-from-benchmarking 2014-10-12 15:49:20 -07:00
Parker Moore 5b5a25a03a Install with multiple jobs. [ci skip] 2014-10-12 15:47:01 -07:00
Parker Moore be3d723d73 Update history to reflect merge of #2996 [ci skip] 2014-10-12 15:19:29 -07:00
Parker Moore 7cad48a3ee Merge pull request #2996 from hickford/link-feed-from-head 2014-10-12 15:18:12 -07:00
Parker Moore b564214535 Pass the context on to IncludeRelativeTag#page_path 2014-10-12 15:16:38 -07:00
Matt Hickford 63a6d595c4 Fix feed link to respect baseurl 2014-10-12 23:14:41 +01:00
Parker Moore 22cc393cd4 Ignore the stackprof tmp files. 2014-10-12 15:12:30 -07:00
Parker Moore 0400ffe377 Only re-run the stackprof if I delete the prof output file. 2014-10-12 15:11:53 -07:00
Parker Moore b07cbcecbd Don't print the location of the stackprof executable 2014-10-12 15:11:44 -07:00
Parker Moore 626706c8c5 Cache the `@includes_dir` in each instance so the method isn't called all the time 2014-10-12 15:11:28 -07:00
Parker Moore a7c0fffcec Only run script/bootstrap in stackprof if stackprof executable isn't there 2014-10-12 14:39:04 -07:00
Parker Moore 73ca205a5c Add test for Document#basename_without_ext 2014-10-12 14:33:13 -07:00
Parker Moore 4942b2947b Only compile the Converter#matches regexp when asked for 2014-10-12 14:31:49 -07:00
Parker Moore fbe98df488 Cache variables that won't change through the life of an object 2014-10-12 14:06:17 -07:00
Parker Moore 44c9f81921 Cache the extname regexp in Converters::Markdown and Textile 2014-10-12 14:06:16 -07:00
Parker Moore 681d71ac04 Move script/benchmark to script/stackprof. [ci skip] 2014-10-12 14:05:55 -07:00
Parker Moore 3902e373d8 Update history to reflect merge of #2993 [ci skip] 2014-10-12 14:05:34 -07:00
Parker Moore ce8d8d929c Merge pull request #2993 from jekyll/benchmarking 2014-10-12 14:04:03 -07:00
Matt Hickford 3994d9116d Link atom feed from html head
This makes it possible for browsers to autodiscover the feed. Fixes https://github.com/jekyll/jekyll/issues/2995
2014-10-12 20:09:14 +01:00
Parker Moore c2caaeaf11 Add rbtrace and stackprof and a script/benchmark script. 2014-10-12 02:02:42 -07:00
Mike Kruk 56ac50c568 where filter - test return value when filtering a Hash 2014-10-08 17:02:36 -04:00
Parker Moore 25d77cb05a Update history to reflect merge of #2982 [ci skip] 2014-10-08 13:57:51 -07:00