Paper/CraftBukkit-Patches
Aikar 7e89c54e7c Don't sleep between chunk saves
For some unknown reason, Minecraft is sleeping 10ms between every single chunk being saved to disk.
Under high chunk load/unload activity (lots of movement / teleporting), this causes the chunk unload queue
to build up in size.

This has multiple impacts:
1) Performance of the unload queue itself - The save thread is pretty ineffecient for how it accesses it
   By letting the queue get larger, checking and popping work off the queue can get less performant.
2) Performance of chunk loading - As with #1, chunk loads also have to check this queue when loading
   chunk data so that it doesn't load stale data if new data is pending write to disk.
3) Memory Usage - The entire chunk has been serialized to NBT, and now sits in this queue. This leads to
   elevated memory usage, and then the objects used in the serialization sit around longer than needed,
   resulting in promotion to Old Generation instead of dying young.

If there is work to do, then the thread should be doing its work, and only sleep when it is done.
2015-09-09 21:16:42 -04:00
..
0001-POM-Changes.patch Update to Minecraft 1.8.8 (Pre-)Release. 2015-07-27 22:20:54 +10:00
0002-mc-dev-imports.patch Don't sleep between chunk saves 2015-09-09 21:16:42 -04:00
0003-Skeleton-API-Implementations.patch Fix conflicts. 2015-07-10 22:33:16 +10:00
0004-Obfuscation-Helpers.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0005-Spigot-Configuration.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0006-Better-Chunk-Tick-Selection.patch SPIGOT-945 - random light ticking not called whenoptimal chunks is zero. 2015-06-01 17:06:20 +10:00
0007-Crop-Growth-Rates.patch Fix crop growth patch 2015-05-26 19:13:21 +10:00
0008-Merge-tweaks-and-configuration.patch Rebuild patches for updates. 2015-07-12 19:59:20 +10:00
0009-Async-Operation-Catching.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0010-View-Distance.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0011-Spigot-Timings.patch Rebuild patches. 2015-09-01 18:07:28 +10:00
0012-Fix-Mob-Spawning-Relative-to-View-Distance.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0013-Handle-Null-Tile-Entities.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0014-Entity-Activation-Range.patch Rebuild patches. 2015-09-01 18:07:28 +10:00
0015-Metrics.patch Update to Minecraft 1.8.8 (Pre-)Release. 2015-07-27 22:20:54 +10:00
0016-PlayerItemDamageEvent.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0017-Prevent-NPE-in-CraftSign.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0018-Entity-Tracking-Ranges.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0019-Thread-Naming-and-Tweaks.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0020-Close-Unloaded-Save-Files.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0021-Remove-o-Option.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0022-Recipe-Deconstruction.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0023-Implement-Arrow-API.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0024-Hopper-Customisations.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0025-Implement-SpawnerSpawnEvent.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0026-Firework-Meta-Crash-Fix.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0027-Allow-Disabling-of-Command-Logging.patch SPIGOT-1050: Add a missing case in the disable usercache saving option 2015-07-23 21:43:27 +01:00
0028-Allow-Disabling-of-Command-TabComplete.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0029-Configurable-Messages.patch Update to Minecraft 1.8.8 (Pre-)Release. 2015-07-27 22:20:54 +10:00
0030-Allow-Disabling-of-Random-Lighting-Updates.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0031-Properly-Close-Inventories.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0032-Disallow-Interaction-With-Self.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0033-Entity-Mount-and-Dismount-Events.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0034-Prevent-Ghost-Players-Caused-by-Plugins.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0035-Plug-World-Unload-Memory-Leak.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0036-Player-Collision-API.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0037-Fully-Disable-Snooper-When-Not-Required.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0038-Add-Getter-for-Entity-Invulnerability.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0039-Cap-Minimum-Player-Speed.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0040-Update-Inventory-and-Health-for-PlayerConsumeItemEve.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0041-Call-EntityChangeBlockEvent-for-Fire-Arrows-hitting-.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0042-Allow-Disabling-of-1.6.3-Structure-Saving.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0043-Item-Despawn-Rate.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0044-Don-t-Special-Case-X-Move-Value.patch Update to 1.8.5 2015-05-22 14:52:56 +01:00
0045-Implement-respawn-API.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0046-Arrow-Despawn-Rate.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0047-Fix-packed-ice-generation.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0048-Watchdog-Thread.patch SPIGOT-997: Add restart API for server. 2015-07-13 19:12:24 +10:00
0049-Clear-Flower-Pot-on-Drop.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0050-Fix-some-chunks-not-being-sent-to-the-client.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0051-Fix-Broken-Async-Chat.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0052-Orebfuscator.patch SPIGOT-1117: Barrier blocks are transparent for xray purposes 2015-08-07 15:34:06 +10:00
0053-Optimize-DataWatcher.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0054-Fire-PreLogin-Events-in-Offline-Mode.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0055-BungeeCord-Support.patch Update for latest CraftBukkit changes. 2015-07-30 17:22:16 +10:00
0056-Allow-Disabling-Zombie-Villager-Aggression.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0057-Configurable-Amount-of-Netty-Threads.patch Rebuild patches for updates. 2015-07-12 19:59:20 +10:00
0058-Prevent-Mineshaft-Saving.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0059-Log-Cause-of-Unexpected-Exceptions.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0060-Particle-API.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0061-Save-ticks-lived-to-nbttag.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0062-More-Efficient-GetCubes.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0063-Add-Option-to-Nerf-Mobs-from-Spawner-s.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0064-Warn-if-PermGen-may-be-insufficient.patch Update to Minecraft 1.8.8 (Pre-)Release. 2015-07-27 22:20:54 +10:00
0065-Disable-Connected-Check-on-setScoreboard.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0066-Add-Late-Bind-Option.patch Update to Minecraft 1.8.8 (Pre-)Release. 2015-07-27 22:20:54 +10:00
0067-Allow-statistics-to-be-disabled-forced.patch Update to Minecraft 1.8.8 (Pre-)Release. 2015-07-27 22:20:54 +10:00
0068-Fix-ItemStack-Unbreakable-Code.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0069-Try-and-Debug-Crash-Reports-Crashing.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0070-Improve-AutoSave-Mechanism.patch Add a missing Spigot comment 2015-06-16 10:24:54 +01:00
0071-Catch-stalling-on-corrupted-map-data-NBT-arrays.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0072-Allow-toggling-of-ZombiePigmen-spawning-in-portal-bl.patch Update to 1.8.4 2015-05-09 21:23:26 +01:00
0073-Highly-Optimized-Tick-Loop.patch Update to Minecraft 1.8.8 (Pre-)Release. 2015-07-27 22:20:54 +10:00
0074-Configurable-Ping-Sample-Size.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0075-Add-Optional-Tick-Shuffling.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0076-Allow-Configuring-Chunks-per-Packet.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0077-Implement-Locale-Getter-for-Players.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0078-Cap-Entity-Collisions.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0079-Fix-dispensing-bone-meal-not-having-the-correct-data.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0080-Spam-Filter-Exclusions.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0081-Add-Option-to-Silence-CommandBlock-Console.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0082-Add-support-for-fetching-hidden-players.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0083-Allow-Disabling-Creative-Item-Filter.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0084-Cap-Channel-Registrations.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0085-Allow-vanilla-commands-to-be-the-main-version-of-a-c.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0086-Unfinalize-the-isDisconnected-method-by-bukkit.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0087-Implement-Silenceable-Lightning-API.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0088-Use-one-PermissibleBase-for-all-Command-Blocks.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0089-Prevent-hoppers-from-loading-chunks.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0090-Guard-Entity-List.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0091-Fix-ConcurrentModificationException-while-being-idle.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0092-Cancellable-WitherSkull-potion-effect.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0093-Descriptive-kick-reasons-instead-of-Nope.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0094-Configurable-dragon-death-and-wither-spawn-sounds.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0095-Display-Spigot-in-client-crashes-server-lists-and-Mo.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0096-Treat-Bungee-as-Online-Mode.patch Add note about BungeeCord when in offline mode. 2015-07-13 19:22:08 +10:00
0097-Add-Conversion-Message.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0098-Properly-cancel-fishing-event.-Fixes-BUKKIT-5396.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0099-Print-Stack-on-InternalException.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0100-Use-Offline-Player-Data-Once-if-Required.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0101-Use-Provided-Case-for-Non-Existent-Offline-Players.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0102-Check-for-blank-OfflinePlayer-Names.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0103-Fix-Player-Banning.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0104-Fix-ban-expire-dates.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0105-Correct-Ban-Expiration.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0106-Convert-Horses-owner-to-UUID.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0107-Add-Score.isScoreSet-Z-API.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0108-Log-null-TileEntity-Owner.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0109-Don-t-special-case-invalid-usernames-for-UUIDs.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0110-Convert-player-skulls-async.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0111-Prevent-NoClassDefError-crash-and-notify-on-crash.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0112-Check-Skull-canPlace.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0113-Fix-race-condition-that-could-kill-connections-befor.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0114-Configurable-UserCache-cap.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0115-Implement-PlayerSpawnLocationEvent.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0116-Cap-Objective-Score-Length.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0117-Process-conversation-input-on-the-main-thread.-Fixes.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0118-Configurable-save-on-stop-only-for-UserCache.patch SPIGOT-1050: Add a missing case in the disable usercache saving option 2015-07-23 21:43:27 +01:00
0119-Prevent-Unbounded-IntCache-Growth.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0120-Add-damager-to-the-unhandled-error.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0121-Cross-World-Entity-Teleportation.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0122-Limit-block-placement-interaction-packets.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0123-Better-item-validation.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0124-Further-Seed-Customisation.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0125-Disable-ResourceLeakDetector.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0126-Add-More-Information-to-session.lock-Errors.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0127-Safer-JSON-Loading.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0128-Fix-Slow-Loading-Libraries.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0129-Add-CommandLine-EULA-Flag.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0130-Fix-for-enchanting-table-wiping-meta-when-placing-st.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0131-Don-t-spawn-bonus-ocelots-when-plugins-spawn-ocelots.patch Rebuild patches. 2015-06-21 09:24:26 +10:00
0132-Prevent-a-crash-involving-attributes.patch Fix patches from camera API 2015-06-09 09:16:01 +10:00
0133-Make-moved-wrongly-limit-configurable.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0134-Fix-Null-Tile-Entity-Worlds.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0135-Make-moved-too-quickly-limit-configurable.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0136-Apply-NBTReadLimiter-to-more-things.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0137-Allow-Attribute-Capping.patch Update for latest CraftBukkit changes. 2015-07-30 17:22:16 +10:00
0138-Only-fetch-an-online-UUID-in-online-mode.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0139-Filter-attribute-modifiers-which-cause-the-attribute.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0140-Plug-WorldMap-Memory-Leak.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0141-Fix-Corrupted-Trapped-Chest.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0142-Remove-uneeded-validation.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0143-Add-Hunger-Config-Values.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0144-Make-debug-logging-togglable.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0145-Skip-invalid-enchants-in-CraftMetaItem.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0146-Limit-TNT-Detonations-per-tick.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0147-Added-isUnbreakable-and-setUnbreakable-to-ItemMeta.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0148-Configurable-Hanging-Tick.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0149-Refactor-ItemDoor-Place.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0150-BungeeCord-Chat-API.patch SPIGOT-997: Add restart API for server. 2015-07-13 19:12:24 +10:00
0151-Use-Standard-List-for-EntitySlices.patch Fix merge conflicts from access transform update. 2015-06-06 19:47:02 +10:00
0152-Allow-Capping-Tile-Entity-Tick-Time.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0153-Use-FastMatches-for-ItemStack-Dirty-Check.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0154-Use-CLQ-for-main-thread-tasks.patch Remove custom links patch. 2015-06-01 19:22:52 +10:00
0155-map-decoration-fix.patch Fix map decorations to store UUIDs internally. 2015-06-05 09:43:14 +03:00
0156-Use-Map-for-getPlayer-String-lookup.patch Use Map for getPlayer(String) lookup. 2015-07-13 19:05:30 +10:00
0157-Clear-Packet-Queue-on-Disconnect.patch Don't allow sendPacket once disconnect has been processed. 2015-07-23 16:23:21 +10:00
0158-Optimize-Chunk-Saving-Memory-Allocation-and-Compress.patch Optimize Chunk Saving Memory Allocation and Compression 2015-09-09 20:48:46 -04:00
0159-More-effecient-RegionFile-zero-ing.patch Optimize Chunk Saving Memory Allocation and Compression 2015-09-09 20:48:46 -04:00
0160-Don-t-sleep-between-chunk-saves.patch Don't sleep between chunk saves 2015-09-09 21:16:42 -04:00