{"id":281679,"date":"2016-11-28T18:55:03","date_gmt":"2016-11-28T15:55:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=281679"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=281679","title":{"rendered":"\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0436\u0435 \u0441\u0442\u0440\u043e\u043a \u0432 \u0444\u0430\u0439\u043b\u0435\u2026"},"content":{"rendered":"<p>\u0417\u0430\u0434\u0443\u043c\u0430\u0432\u0448\u0438\u0441\u044c \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u043d\u0430\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u0435-\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0443\u0436\u0434\u0430 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0432 \u0444\u0430\u0439\u043b\u0430\u0445. \u0421\u0447\u0438\u0442\u0430\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e. \u0410 \u0444\u0430\u0439\u043b\u044b \u0431\u044b\u0432\u0430\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 (500\u20131500 \u041c\u0431). \u0418, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0441\u044f \u043d\u0430 \u0431\u043e\u043b\u044c\u043d\u0438\u0447\u043d\u043e\u043c, \u0432\u043e\u0437\u043d\u0438\u043a \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u043a\u0430\u043a\u043e\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0451\u0442 \u0441\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u043e \u0437\u0430 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f.<\/p>\n<p>  TL;DR; Go \u2014 \u043f\u043e\u0431\u0435\u0434\u0438\u043b.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h4>\n<p>  \u0418\u0442\u0430\u043a, \u0431\u044b\u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043c\u043d\u0435 \u044f\u0437\u044b\u043a\u0438:<\/p>\n<ul>\n<li>\n<div class=\"spoiler\"><b class=\"spoiler_title\">linesCount.c<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">#include &lt;stdio.h&gt; #include &lt;time.h&gt;  int main(int argc, const char * argv[]) {         const char *path = &quot;big.csv&quot;;          double startTime = clock();          int linesCount = 0;     FILE *fp = fopen(path, &quot;r&quot;);     int bufsize = 32*1024;     char buff[bufsize];     while (fgets(buff, bufsize, fp) != NULL) {         linesCount++;     }     fclose(fp);          double endTime = clock();     double totalTime = (endTime - startTime) \/ CLOCKS_PER_SEC;     printf(&quot;Time: %f s\\n&quot;, totalTime);     printf(&quot;Lines: %d \\n&quot;, linesCount);          return 0; } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<\/li>\n<li>\n<div class=\"spoiler\"><b class=\"spoiler_title\">C# (Mono\/macOS,\u00a0.Net\/Windows)<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cs\">using System; using System.IO;  namespace lineStat { \tclass MainClass \t{ \t\tpublic static void Main(string[] args) \t\t{ \t\t\tvar filename = &quot;big.csv&quot;;  \t\t\tvar startTime = DateTime.Now; \t\t\tvar linesCount = countLinesInFile(filename); \t\t\tvar spentTime = DateTime.Now - startTime; \t\t\tConsole.WriteLine(&quot;Lines count: {0} in {1}&quot;, linesCount, spentTime); \t\t}  \t\tstatic int countLinesInFile(string filename) \t\t{ \t\t\tint linesCount = 0; \t\t\tusing (var reader = new StreamReader(filename)) \t\t\t{ \t\t\t\twhile (reader.ReadLine() != null) { \t\t\t\t\tlinesCount++; \t\t\t\t} \t\t\t} \t\t\treturn linesCount; \t\t} \t} }<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<\/li>\n<li>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Go<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"go\">package main  import ( \t&quot;bytes&quot; \t&quot;fmt&quot; \t&quot;io&quot; \t&quot;os&quot; \t&quot;time&quot; )  func main() {  \tstart_time := time.Now() \tfile, _ := os.Open(&quot;big.csv&quot;) \tcount, _ := lineCounter(file) \telapsed := time.Since(start_time) \tfmt.Printf(&quot;Lines count: %d in %s\\n&quot;, count, elapsed) }  func lineCounter(r io.Reader) (int, error) { \tbuf := make([]byte, 32*1024) \tcount := 0 \tlineSep := []byte{'\\n'}  \tfor { \t\tc, err := r.Read(buf) \t\tcount += bytes.Count(buf[:c], lineSep)  \t\tswitch { \t\tcase err == io.EOF: \t\t\treturn count, nil  \t\tcase err != nil: \t\t\treturn count, err \t\t} \t} }<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<\/li>\n<li>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Java<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"java\">package me.meamka;  import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.text.DecimalFormat; import java.text.NumberFormat;  public class LinesCount {      public static void main(String[] args) throws IOException { \t\/\/ write your code here         String filename = &quot;big.csv&quot;;         System.out.println(&quot;Count lines in &quot; + filename);         long startTime = System.nanoTime();         int linesCount = countLinesInFile(filename);         long endTime = System.nanoTime();         NumberFormat formatter = new DecimalFormat(&quot;#0.00000&quot;);         System.out.println(&quot;Lines count: &quot; + linesCount +&quot; in &quot; + formatter.format((endTime - startTime) \/ 1000000000d));     }      private static int countLinesInFile(String filename) throws IOException {         int linesCount = 0;          try (BufferedReader br = new BufferedReader(new FileReader(filename))) {             while (br.readLine() != null) {                 linesCount++;             }         }         return linesCount;     } }<\/code><\/pre>\n<\/div>\n<\/div>\n<\/li>\n<li>\n<div class=\"spoiler\"><b class=\"spoiler_title\">PHP<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">&lt;?php function countLinesInFile($filename) { \t$f = fopen( 'big.csv', 'r'); \t$lineCount = 0; \twhile (!feof($f)) \t{ \t\tif (fgets($f))         $lineCount++; \t} \tfclose($f); \treturn $lineCount; } function main() { \t$start = microtime(true); \t$linesCount = countLinesInFile($filename); \t$duration = number_format(microtime(true)-$start, 4); \t$memory = number_format(memory_get_peak_usage(true),0,'.',' '); \techo &quot;Total lines: $linesCount; Duration: $duration seconds; Memory used: $memory bytes\\n&quot;; } main(); ?&gt;<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<\/li>\n<li>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Python<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\"># coding: utf-8 import time  def linesCount(filename):     count = 0     with open(filename, 'r') as reader:         while reader.readline():             count += 1      return count   if __name__ == '__main__':     filename = 'big.csv'      start_time = time.time()     count = linesCount(filename)     end_time = time.time() - start_time      print(&quot;Lines count: %s in %s&quot; % (count, end_time))<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<\/li>\n<li>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Swift<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>import Foundation import Darwin   var path = &quot;big.csv&quot;  let methodStart = NSDate()  var linesCount = 0 let bufsize = 32*1024 var buf = UnsafeMutablePointer&lt;Int8&gt;.allocate(capacity: bufsize)  let filePointer = fopen(path, &quot;r&quot;)  while fgets(buf, Int32(bufsize-1), filePointer) != nil {     \/\/    print(String.fromCString(CString(buf)))     linesCount += 1 } fclose(filePointer)  let methodFinish = Date() let executionTime = methodFinish.timeIntervalSince(methodStart as Date) print(&quot;Execution time: \\(executionTime)&quot;)  print(&quot;Lines Count: \\(linesCount)&quot;)<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<\/li>\n<\/ul>\n<h4>\u0422\u0435\u0441\u0442\u043e\u0432\u0430\u044f \u0441\u0440\u0435\u0434\u0430<\/h4>\n<p>  \u0412\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0438 \u0442\u0435\u0441\u0442\u044b (\u043a\u0440\u043e\u043c\u0435\u00a0.Net) \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u043d\u0430 MacBook Pro 13 Late 2012 \u0441 i5 2.5 GHz, SSD 256 Gb \u0438 8 Gb \u041e\u0417\u0423, macOS 10.12.1.<\/p>\n<p>  \u0424\u0430\u0439\u043b \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u0431\u044b\u043b \u043d\u0430\u0439\u0434\u0435\u043d \u0432 \u0432\u0438\u0434\u0435\u00a0.csv \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 491,4 \u041c\u0431 \u0438 489286 \u0441\u0442\u0440\u043e\u043a.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u0431\u044b\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0435 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u0438\u0437 2\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439: \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043a\u043e\u043b-\u0432\u043e \u0441\u0442\u0440\u043e\u043a.<\/p>\n<h4>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b<\/h4>\n<p>  <\/p>\n<table>\n<tr>\n<th>C<\/th>\n<th>\u2248 0.25 \u0441\u0435\u043a<\/th>\n<\/tr>\n<tr>\n<td>C#<\/td>\n<td>\u2248 2.8 \u0441\u0435\u043a<\/td>\n<\/tr>\n<tr>\n<td>Go<\/td>\n<td>\u2248 0.16 \u0441\u0435\u043a<\/td>\n<\/tr>\n<tr>\n<td>Java<\/td>\n<td>\u2248 2.7 \u0441\u0435\u043a<\/td>\n<\/tr>\n<tr>\n<td>PHP<\/td>\n<td>\u2248 0.25 \u0441\u0435\u043a<\/td>\n<\/tr>\n<tr>\n<td>Python<\/td>\n<td>\u2248 2.6 \u0441\u0435\u043a<\/td>\n<\/tr>\n<tr>\n<td>Objective-C\/Swift<\/td>\n<td>\u2248 0.25 \u0441\u0435\u043a<\/td>\n<\/tr>\n<\/table>\n<p>  \u041e\u0433\u043e\u0432\u043e\u0440\u044e\u0441\u044c, \u0447\u0442\u043e \u044f \u043d\u0435 \u0434\u0435\u043b\u0430\u043b \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439, \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0441\u044c \u043d\u0430 20. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432\u0437\u044f\u043b \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n<h4>\u0418\u0437 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e<\/h4>\n<p>  <\/p>\n<ul>\n<li>\u041f\u0435\u0440\u0432\u044b\u0435 \u0442\u0435\u0441\u0442\u044b \u043d\u0430 C# (Mono) \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438 \u0443\u0436\u0430\u0441\u0430\u044e\u0449\u0438\u0435 7.5 \u0441\u0435\u043a\u0443\u043d\u0434, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u043e\u0434 Windows \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430 3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \u041f\u043e\u043b\u0430\u0433\u0430\u044e, \u041e\u0421 \u0431\u044b\u043b\u0430 \u0447\u0435\u043c-\u0442\u043e \u0437\u0430\u043d\u044f\u0442\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0434\u0435\u043d\u044c \u0442\u0435\u0441\u0442\u044b \u0432\u044b\u0434\u0430\u043b\u0438 \u0442\u0435\u0440\u043f\u0438\u043c\u044b\u0435 2.5-3 \u0441\u0435\u043a.<\/li>\n<li>\u041d\u0438\u043a\u0430\u043a \u043d\u0435 \u043e\u0436\u0438\u0434\u0430\u043b, \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0447\u0442\u043e-\u0442\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 C. Go \u0443\u0434\u0438\u0432\u0438\u043b<\/li>\n<li>\u041d\u0435 \u043e\u0436\u0438\u0434\u0430\u043b \u043f\u043e\u0434\u043e\u0431\u043d\u0443\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u0442 PHP. \u041d\u043e C-\u0448\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u0434\u0430\u044e\u0442 \u043e \u0441\u0435\u0431\u0435 \u0437\u043d\u0430\u0442\u044c.<\/li>\n<li>Objective-C\/Swift \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0432\u0441\u0442\u0440\u043e\u0438\u0442\u044c C-\u043a\u043e\u0434 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0439 \u0441\u0430\u043c\u043e\u043c\u0443 C \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u042f \u0441\u043c\u0443\u0445\u043b\u0435\u0432\u0430\u043b<\/li>\n<\/ul>\n<h4>P. S.<\/h4>\n<p>  \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u043f\u0440\u0438\u043b\u0435\u043f\u043b\u0435\u043d\u044b \u0432 Gist: <a href=\"https:\/\/gist.github.com\/amka\/956bf18acdd87208d48fa79f750c1ae0\">\u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u043a\u043e\u0434\u044b<\/a>.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0436\u0435\u043b\u0430\u0435\u0442 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u2014\u00a0\u043c\u0438\u043b\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0448\u0443, \u043c\u043d\u0435 \u043a\u0440\u0430\u0439\u043d\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e.<\/p>\n<p>  \u0418, \u043f\u043e\u0432\u0442\u043e\u0440\u044e\u0441\u044c, \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u0443 \u043c\u0435\u043d\u044f \u043a\u0440\u0430\u0439\u043d\u0435 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0439, \u0441\u0442\u043e\u0438\u0442 \u0432\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u00abJava \u2014 ***, \u0430 C \u2014 \u0440\u0443\u043b\u0438\u0442!\u00bb.<\/p>\n<p>  \u0423\u0434\u0430\u0447\u0438 \u0434\u0440\u0443\u0437\u044c\u044f\u043c \u0433\u0440\u0443\u043c\u043c\u0435\u043b\u0435\u0439!<br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/316340\/\"> https:\/\/habrahabr.ru\/post\/316340\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0443\u043c\u0430\u0432\u0448\u0438\u0441\u044c \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u043d\u0430\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u043a\u043e\u0435-\u043a\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0443\u0436\u0434\u0430 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a \u0432 \u0444\u0430\u0439\u043b\u0430\u0445. \u0421\u0447\u0438\u0442\u0430\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e. \u0410 \u0444\u0430\u0439\u043b\u044b \u0431\u044b\u0432\u0430\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 (500\u20131500 \u041c\u0431). \u0418, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0441\u044f \u043d\u0430 \u0431\u043e\u043b\u044c\u043d\u0438\u0447\u043d\u043e\u043c, \u0432\u043e\u0437\u043d\u0438\u043a \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u043a\u0430\u043a\u043e\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0451\u0442 \u0441\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u043e \u0437\u0430 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f.<\/p>\n<p>  TL;DR; Go \u2014 \u043f\u043e\u0431\u0435\u0434\u0438\u043b.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-281679","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/281679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=281679"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/281679\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=281679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=281679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=281679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}