Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize Documentation Images to Save Bandwidth #173

Merged
merged 1 commit into from
Feb 3, 2016

Conversation

daknob
Copy link
Contributor

@daknob daknob commented Dec 4, 2015

This commit optimizes the images available in the
docs folder in order to save on bandwidth and
also decrease page loading time.

Images updated:

  • docs/Array.png
  • docs/ArrayBridge.png
  • docs/ArrayCast.png
  • docs/ArrayImplementation.png
  • docs/ContiguousArray.png
  • docs/Slice.png

This commit optimizes the images available in the
docs folder in order to  save  on  bandwidth  and
also decrease page loading time.

Images updated:
- docs/Array.png
- docs/ArrayBridge.png
- docs/ArrayCast.png
- docs/ArrayImplementation.png
- docs/ContiguousArray.png
- docs/Slice.png
@tkremenek
Copy link
Member

What is the actual win of doing this compression? How much space is saved?

Note that doing this change actually increases the size of the cloned repository.

@tkremenek tkremenek self-assigned this Dec 4, 2015
@daknob
Copy link
Contributor Author

daknob commented Dec 4, 2015

@krememek This increases the git repository size overall but it will decrease the amount of bandwidth required to serve the Swift Documentation website. Since there are more people viewing the documentation than cloning the repository I believe there is a benefit.

The reported size decrease is here, per file:

Total Size Before: 769.7 kB
Total Size After:  564.9 kB

File                        Savings
Array.png                     35.3%
ArrayBridge.png               26.2%
ArrayCast.png                 24.1%
ArrayImplementation.png       20.6%
ContiguousArray.png           39.6%
Slice.png                     37.0%

@13rac1
Copy link
Contributor

13rac1 commented Dec 5, 2015

@daknob 👍 200kb saved per doc user vs 564kb cost for clones. Worth it.

@masters3d
Copy link
Contributor

Where in the swift.org site is this documentation? I could not find.

tkremenek added a commit that referenced this pull request Feb 3, 2016
Optimize Documentation Images to Save Bandwidth
@tkremenek tkremenek merged commit af3f8ec into swiftlang:master Feb 3, 2016
slavapestov pushed a commit to slavapestov/swift that referenced this pull request Nov 27, 2018
dabelknap added a commit to dabelknap/swift that referenced this pull request Dec 19, 2018
kateinoigakukun pushed a commit to kateinoigakukun/swift that referenced this pull request Feb 18, 2020
This allows installing build dependencies without actually building anything.
maldahleh pushed a commit to maldahleh/swift that referenced this pull request Oct 26, 2020
freak4pc pushed a commit to freak4pc/swift that referenced this pull request Sep 28, 2022
Update ReactiveCocoa xfails with correct jira reference
nate-chandler added a commit to nate-chandler/swift that referenced this pull request Jun 28, 2023
On recent main, this test case fails verification with

```
SIL memory lifetime failure in @$s4main4doityyF: memory is not initialized, but should be
memory location:   %21 = struct_element_addr %20 : $*M4, #M4.s2    // user: %23
at instruction:   %23 = apply %22(%19, %21) : $@convention(thin) (@inout S, @inout S) -> ()

[...]

4.      While running pass swiftlang#173 SILFunctionTransform "MoveOnlyChecker" on SILFunction "@$s4main4doityyF".
 for 'doit()' (at test/Interpreter/moveonly_reinit_noncontiguous.swift:32:1)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants