fasttext 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1bb25234ba16e6af2a30087522d498984a933274d24719be58cd348f6f456c11
4
- data.tar.gz: 2ec68073ce633dae21077be74264f686153abff5431d850c5cf87aa26304b299
3
+ metadata.gz: 597a9c73a6720397b11fb9bd0492c33ed458783747d904deef74618a6f319133
4
+ data.tar.gz: b03ab1e051cda71fafc499dbf0847d3da1c27050646e949eac148a5548460054
5
5
  SHA512:
6
- metadata.gz: '058233f6d6dcfc698b4e00f940d927962c28bef1aa51048ffdfb969accadcaf0616fbc3353c56c35e6609f1324c5d2ba469c4ba242b8a87daf60fd2b1fa7a35b'
7
- data.tar.gz: e2bf6042ddc218398584b399acdde2ad89ece74e3009ac5348981e4ce958057233b10b5a5a504cb2e316c4a03fb4595fea524e3af0f30d787a1fb689885f6d5d
6
+ metadata.gz: 844ae824ad06aa270a5c58b6dc109701660b2bb0e5bfe63e285df57bc5db854028703c1c0476a845d5b0e8c32dd02ac42e1c8b1c5c0684713928c895c776b1da
7
+ data.tar.gz: 7f7a07f0041981eb046e84f6b44f4207192eb9e8a786edf41b53ae15b370eb875f5b4d578248c90a371805697ad3f0fa076532d1f6789c44d336d72402a54333
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.1 (2021-05-23)
2
+
3
+ - Improved performance
4
+
1
5
  ## 0.2.0 (2021-05-17)
2
6
 
3
7
  - Updated to Rice 4
data/ext/fasttext/ext.cpp CHANGED
@@ -50,14 +50,10 @@ namespace Rice::detail
50
50
  fasttext::Args buildArgs(Hash h) {
51
51
  fasttext::Args a;
52
52
 
53
- std::vector<Hash::Entry> v;
54
- Hash::iterator it = h.begin();
55
- Hash::iterator end = h.end();
56
-
57
- for(; it != end; ++it)
53
+ for (const auto& it : h)
58
54
  {
59
- std::string name = it->key.to_s().str();
60
- VALUE value = (it->value).value();
55
+ auto name = it.key.to_s().str();
56
+ auto value = (it.value).value();
61
57
 
62
58
  if (name == "input") {
63
59
  a.input = Rice::detail::From_Ruby<std::string>().convert(value);
@@ -1,7 +1,7 @@
1
1
  require "mkmf-rice"
2
2
 
3
3
  # -pthread and -O3 set by default
4
- $CXXFLAGS << " -std=c++17 -funroll-loops " << with_config("optflags", "-march=native")
4
+ $CXXFLAGS << " -std=c++17 $(optflags) -funroll-loops " << with_config("optflags", "-march=native")
5
5
 
6
6
  ext = File.expand_path(".", __dir__)
7
7
  fasttext = File.expand_path("../../vendor/fastText/src", __dir__)
@@ -1,3 +1,3 @@
1
1
  module FastText
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fasttext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-17 00:00:00.000000000 Z
11
+ date: 2021-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rice