libffm 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: 5f1d48f6ab534406f57b25e461c3dadda4811b058c4ece588b27670eef6313b6
4
- data.tar.gz: 3991527073b513ce0104861539cd7f62200282891fd1b7631648936572b9adc6
3
+ metadata.gz: 782aa375cfb5914f555a5cfcce90861d735b17eb9cc2ac0d2cb5f742440abea6
4
+ data.tar.gz: e0fa4042b6c1c107adbb5ea773e0723964b3b6471a6e8786fa917f014e753313
5
5
  SHA512:
6
- metadata.gz: 1939d2d1cbb8180cb4ebc351c3f831da8204e07ee073bbb84e8e50c80b71cde01ae48e1d6a67c2ade3a32b05e003b2a0ad9295645eeaf918b0f76ac19f0cfd59
7
- data.tar.gz: d4717dae8844e43a2e3c2cc8889713de452f7e9e9781e1647072033336b03ee52ffd869e5e5a98c2c1d098fc35d6e0e34e41de9db80a20abcda11e14afefb67d
6
+ metadata.gz: ec6e9c1da413726debdc94f1fdf468ebb6c2f9667eb2aabd7aae4eb2420442d0d926567e629649c6e4986cf7f6740deafba4a11e682c7ac1e6af697cdbc7ea68
7
+ data.tar.gz: '08b2ec52e249662570bb2af23efe46625e38efc94dc542cec054728740f776fcfe1cad06516799bb350ec00628ef36ce5332183d9f48dd052f25be50f54973b3'
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/libffm/ext.cpp CHANGED
@@ -20,9 +20,9 @@ using Rice::define_class_under;
20
20
  extern "C"
21
21
  void Init_ext()
22
22
  {
23
- Module rb_mLibffm = define_module("Libffm");
23
+ auto rb_mLibffm = define_module("Libffm");
24
24
 
25
- Module rb_mExt = define_module_under(rb_mLibffm, "Ext");
25
+ auto rb_mExt = define_module_under(rb_mLibffm, "Ext");
26
26
  define_class_under<ffm::ffm_model>(rb_mExt, "Model");
27
27
 
28
28
  rb_mExt
@@ -72,11 +72,11 @@ void Init_ext()
72
72
  x.clear();
73
73
  strtok(line, " \t");
74
74
 
75
- while(true) {
75
+ while (true) {
76
76
  char *field_char = strtok(nullptr,":");
77
77
  char *idx_char = strtok(nullptr,":");
78
78
  char *value_char = strtok(nullptr," \t");
79
- if(field_char == nullptr || *field_char == '\n')
79
+ if (field_char == nullptr || *field_char == '\n')
80
80
  break;
81
81
 
82
82
  ffm::ffm_node N;
@@ -2,7 +2,7 @@ require "mkmf-rice"
2
2
 
3
3
  # -DUSESSE requires sse3
4
4
  # TODO test for it or update fork to use __SSE3__
5
- $CXXFLAGS += " -std=c++17 -march=native"
5
+ $CXXFLAGS += " -std=c++17 $(optflags) -march=native"
6
6
 
7
7
  apple_clang = RbConfig::CONFIG["CC_VERSION_MESSAGE"] =~ /apple clang/i
8
8
 
@@ -1,3 +1,3 @@
1
1
  module Libffm
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: libffm
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