Skip to content

Commit

Permalink
Merge branch 'release-1.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
tsolomko committed Nov 20, 2016
2 parents 78b23ec + df1ed2f commit a635c37
Show file tree
Hide file tree
Showing 19 changed files with 79 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: objective-c
osx_image: xcode8
osx_image: xcode8.1
xcode_project: SWCompression.xcodeproj
xcode_scheme: SWCompression
env:
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Changelog
v1.1.1
----------------
- Fixed problems when building with Swift Package Manager.
- Added missing files to watchOS scheme.
- Every release on github now will have an archive with pre-built framework.
- Added info about performance to README.

v1.1.0
----------------
- Added BZip2 decompression.
Expand Down
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import PackageDescription
let package = Package(
name: "SWCompression",
exclude: [
"Sources/Service/",
"Tests/"
]
)
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,16 @@ let decompressedData = try? ZlibArchive.unarchive(archiveData: data)
One final note: every unarchive/decompress function can throw an error and
you are responsible for handling them.

Why is it so slow?
-------------
Is it?

The problem is that if SWCompression is built with 'Debug' configuration for some reason the performance is really bad.
However, if you use 'Release' configuration varoius optimizations start to take effect and decompression speed will be much better.
I don't know what is really happening, how Swift compiler works, etc., but bottomline is that you should REALLY use __'Release'__ builds of SWCompression.

_Note:_ There are (mostly, were) performance problems caused by implementation (you can check out v1.0.0, if you want to know what is 'slow'!), but as the time goes on I am trying to find new ways to optimize the code.

Future plans
-------------
- Performance improvement.
Expand Down
4 changes: 2 additions & 2 deletions SWCompression.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "SWCompression"
s.version = "1.1.0"
s.version = "1.1.1"
s.summary = "Framework with implementations in Swift of different (de)compression algorithms"

s.description = <<-DESC
Expand All @@ -26,7 +26,7 @@ Pod::Spec.new do |s|

s.subspec 'Common' do |sp|
sp.public_header_files = 'Sources/Service/SWCompression.h'
sp.source_files = "Sources/{Common,Service}/*.{swift,h}"
sp.source_files = "Sources/{DataWithPointer.swift,HuffmanTable.swift,HuffmanLength.swift,Protocols.swift,Extensions.swift,Service/*.swift,Service/*.h}"
end

s.subspec 'Deflate' do |sp|
Expand Down
100 changes: 50 additions & 50 deletions SWCompression.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Sources/Service/Info-iOS.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.1.0</string>
<string>1.1.1</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion Sources/Service/Info-tvOS.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.1.0</string>
<string>1.1.1</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion Sources/Service/Info-watchOS.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.1.0</string>
<string>1.1.1</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion Sources/Service/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.1.0</string>
<string>1.1.1</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
Expand Down
2 changes: 1 addition & 1 deletion Tests/Bzip2Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import XCTest
@testable import SWCompression
import SWCompression

class Bzip2Tests: XCTestCase {

Expand Down
2 changes: 1 addition & 1 deletion Tests/GzipTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import XCTest
@testable import SWCompression
import SWCompression

class GzipTests: XCTestCase {

Expand Down
2 changes: 1 addition & 1 deletion Tests/PerformanceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import XCTest
@testable import SWCompression
import SWCompression

class PerformanceTests: XCTestCase {

Expand Down
2 changes: 1 addition & 1 deletion Tests/ZlibTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import XCTest
@testable import SWCompression
import SWCompression

class ZlibTests: XCTestCase {

Expand Down

0 comments on commit a635c37

Please sign in to comment.